stuff
This commit is contained in:
parent
4a1effeed3
commit
ca279920c3
|
@ -365,7 +365,7 @@ module.exports = (_ => {
|
|||
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(message.channel_id);
|
||||
if (channel && (BDFDB.UserUtils.can("MANAGE_MESSAGES") || message.author.id == BDFDB.UserUtils.me.id)) {
|
||||
BDFDB.LibraryModules.MessageUtils.deleteMessage(message.channel_id, message.id, message.state != BDFDB.DiscordConstants.MessageStates.SENT);
|
||||
if (toasts[action]) BDFDB.NotificationUtils.toast(this.formatToast(BDFDB.LanguageUtils.LanguageStrings.GUILD_SETTINGS_FOLLOWER_ANALYTICS_MESSAGE_DELETED), {type: "success"});
|
||||
if (toasts[action]) BDFDB.NotificationUtils.toast(this.formatToast(this.labels.toast_message_deleted), {type: "success"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -460,6 +460,127 @@ module.exports = (_ => {
|
|||
}
|
||||
return str.join("+").replace(/ /g, "");
|
||||
}
|
||||
|
||||
setLabelsByLanguage () {
|
||||
switch (BDFDB.LanguageUtils.getLanguage().id) {
|
||||
case "bg": // Bulgarian
|
||||
return {
|
||||
toast_message_deleted: "Съобщението беше успешно изтрито"
|
||||
};
|
||||
case "cs": // Czech
|
||||
return {
|
||||
toast_message_deleted: "Zpráva byla úspěšně smazána"
|
||||
};
|
||||
case "da": // Danish
|
||||
return {
|
||||
toast_message_deleted: "Beskeden blev slettet"
|
||||
};
|
||||
case "de": // German
|
||||
return {
|
||||
toast_message_deleted: "Nachricht wurde erfolgreich gelöscht"
|
||||
};
|
||||
case "el": // Greek
|
||||
return {
|
||||
toast_message_deleted: "Το μήνυμα διαγράφηκε με επιτυχία"
|
||||
};
|
||||
case "es": // Spanish
|
||||
return {
|
||||
toast_message_deleted: "El mensaje fue eliminado con éxito"
|
||||
};
|
||||
case "fi": // Finnish
|
||||
return {
|
||||
toast_message_deleted: "Viesti poistettiin onnistuneesti"
|
||||
};
|
||||
case "fr": // French
|
||||
return {
|
||||
toast_message_deleted: "Le message a été supprimé avec succès"
|
||||
};
|
||||
case "hi": // Hindi
|
||||
return {
|
||||
toast_message_deleted: "संदेश सफलतापूर्वक हटा दिया गया"
|
||||
};
|
||||
case "hr": // Croatian
|
||||
return {
|
||||
toast_message_deleted: "Poruka je uspješno izbrisana"
|
||||
};
|
||||
case "hu": // Hungarian
|
||||
return {
|
||||
toast_message_deleted: "Az üzenet sikeresen törölve"
|
||||
};
|
||||
case "it": // Italian
|
||||
return {
|
||||
toast_message_deleted: "Il messaggio è stato eliminato con successo"
|
||||
};
|
||||
case "ja": // Japanese
|
||||
return {
|
||||
toast_message_deleted: "メッセージは正常に削除されました"
|
||||
};
|
||||
case "ko": // Korean
|
||||
return {
|
||||
toast_message_deleted: "메시지가 성공적으로 삭제되었습니다."
|
||||
};
|
||||
case "lt": // Lithuanian
|
||||
return {
|
||||
toast_message_deleted: "Laiškas sėkmingai ištrintas"
|
||||
};
|
||||
case "nl": // Dutch
|
||||
return {
|
||||
toast_message_deleted: "Bericht is succesvol verwijderd"
|
||||
};
|
||||
case "no": // Norwegian
|
||||
return {
|
||||
toast_message_deleted: "Meldingen ble slettet"
|
||||
};
|
||||
case "pl": // Polish
|
||||
return {
|
||||
toast_message_deleted: "Wiadomość została pomyślnie usunięta"
|
||||
};
|
||||
case "pt-BR": // Portuguese (Brazil)
|
||||
return {
|
||||
toast_message_deleted: "A mensagem foi excluída com sucesso"
|
||||
};
|
||||
case "ro": // Romanian
|
||||
return {
|
||||
toast_message_deleted: "Mesajul a fost șters cu succes"
|
||||
};
|
||||
case "ru": // Russian
|
||||
return {
|
||||
toast_message_deleted: "Сообщение было успешно удалено"
|
||||
};
|
||||
case "sv": // Swedish
|
||||
return {
|
||||
toast_message_deleted: "Meddelandet har raderats"
|
||||
};
|
||||
case "th": // Thai
|
||||
return {
|
||||
toast_message_deleted: "ลบข้อความเรียบร้อยแล้ว"
|
||||
};
|
||||
case "tr": // Turkish
|
||||
return {
|
||||
toast_message_deleted: "Mesaj başarıyla silindi"
|
||||
};
|
||||
case "uk": // Ukrainian
|
||||
return {
|
||||
toast_message_deleted: "Повідомлення було успішно видалено"
|
||||
};
|
||||
case "vi": // Vietnamese
|
||||
return {
|
||||
toast_message_deleted: "Tin nhắn đã được xóa thành công"
|
||||
};
|
||||
case "zh-CN": // Chinese (China)
|
||||
return {
|
||||
toast_message_deleted: "消息已成功删除"
|
||||
};
|
||||
case "zh-TW": // Chinese (Taiwan)
|
||||
return {
|
||||
toast_message_deleted: "消息已成功刪除"
|
||||
};
|
||||
default: // English
|
||||
return {
|
||||
toast_message_deleted: "Message was successfully deleted"
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
||||
})();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name NotificationSounds
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 3.6.7
|
||||
* @version 3.6.8
|
||||
* @description Allows you to replace the native Sounds with custom Sounds
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "NotificationSounds",
|
||||
"author": "DevilBro",
|
||||
"version": "3.6.7",
|
||||
"version": "3.6.8",
|
||||
"description": "Allows you to replace the native Sounds with custom Sounds"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Message Notifications": "No longer plays them for every message or for no messages if desktop notifications are enabled"
|
||||
"Bot Replies": "No longer plays Reply Sound when a Bot responds to a Slash Command"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -243,7 +243,7 @@ module.exports = (_ => {
|
|||
else if (guildId) {
|
||||
if (BDFDB.LibraryModules.MentionUtils.isRawMessageMentioned(message, BDFDB.UserUtils.me.id)) {
|
||||
if (message.mentions.length && !this.isSuppressMentionsEnabled(guildId, message.channel_id)) for (const mention of message.mentions) if (mention.id == BDFDB.UserUtils.me.id) {
|
||||
if (message.message_reference && (!muted || choices.reply.force) && !(choices.reply.focus && focused)) {
|
||||
if (message.message_reference && !message.interaction && (!muted || choices.reply.force) && !(choices.reply.focus && focused)) {
|
||||
this.fireEvent("reply");
|
||||
this.playAudio("reply");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue