This commit is contained in:
Mirco Wittrien 2024-05-11 17:57:17 +02:00
parent 51edb92b8c
commit bb0db8a635
2 changed files with 30 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* @name EditUsers
* @author DevilBro
* @authorId 278543574059057154
* @version 4.8.8
* @version 4.8.9
* @description Allows you to locally edit Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -1027,8 +1027,15 @@ module.exports = (_ => {
e.instance.props.user = this.getUserData(e.instance.props.user.id);
let data = changedUsers[e.instance.props.user.id];
if (data) {
let member = BDFDB.LibraryStores.GuildMemberStore.getMember(e.instance.props.channel.guild_id, e.instance.props.user.id);
if (data.color1) {
if (BDFDB.LibraryStores.AccessibilityStore.roleStyle != "dot") e.instance.props.colorString = null;
else {
let color1 = data.color1 && data.useRoleColor && (member || {}).colorString || data.color1;
if (color1) e.instance.props.colorString = BDFDB.ColorUtils.convert(BDFDB.ObjectUtils.is(color1) ? color1[0] : color1, "HEX");
}
}
if (data.name) {
let member = BDFDB.LibraryStores.GuildMemberStore.getMember(e.instance.props.channel.guild_id, e.instance.props.user.id);
e.instance.props.nick = this.getUserNick(e.instance.props.user.id, member && member.nick || e.instance.props.user.globalName);
}
if (data.removeStatus || data.status || data.statusEmoji) {

View File

@ -745,18 +745,34 @@ module.exports = (_ => {
};
case "es": // Spanish
return {
context_pinoption: "Escribe el mensaje",
context_unpinoption: "Eliminar la nota",
context_updateoption: "Actualiza la nota",
context_pinoption: "Guardar nota",
context_unpinoption: "Eliminar nota",
context_updateoption: "Actualizar nota",
popout_filter_all: "Todos los servidores",
popout_filter_channel: "Canal",
popout_filter_server: "Servidor",
popout_note: "Notas",
popout_pinoption: "Nota",
popout_sort_messagetime: "Fecha del mensaje",
popout_sort_notetime: "Fecha della nota",
toast_noteadd: "Mensaje agregado al cuaderno",
popout_sort_notetime: "Fecha de la nota",
toast_noteadd: "Mensaje guardado en la libreta",
toast_noteremove: "Mensaje eliminado de la libreta",
toast_noteupdate: "Se actualizó el mensaje en la libreta."
};
case "es-419": // Latin Spanish
return {
context_pinoption: "Guardar nota",
context_unpinoption: "Eliminar nota",
context_updateoption: "Actualizar nota",
popout_filter_all: "Todos los servidores",
popout_filter_channel: "Canal",
popout_filter_server: "Servidor",
popout_note: "Notas",
popout_pinoption: "Nota",
popout_sort_messagetime: "Fecha del mensaje",
popout_sort_notetime: "Fecha de la nota",
toast_noteadd: "Mensaje agregado al cuaderno",
toast_noteremove: "Mensaje eliminado del cuaderno",
toast_noteupdate: "Se actualizó el mensaje en el cuaderno."
};
case "fi": // Finnish