Update MessageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2021-03-10 11:45:11 +01:00
parent e5a24a2dd6
commit 7774bd0074
1 changed files with 0 additions and 1 deletions

View File

@ -409,7 +409,6 @@ module.exports = (_ => {
doReply ({messageDiv, message}, action) {
if (message.state == BDFDB.DiscordConstants.MessageStates.SENT) {
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(message.channel_id);
console.log(message);
if (channel && (BDFDB.DMUtils.isDMChannel(channel.id) || BDFDB.UserUtils.can("SEND_MESSAGES")) && (message.type == BDFDB.DiscordConstants.MessageTypes.DEFAULT || message.type == BDFDB.DiscordConstants.MessageTypes.REPLY)) {
BDFDB.LibraryModules.MessageManageUtils.replyToMessage(channel, message);
if (toasts[action]) BDFDB.NotificationUtils.toast(this.formatToast(BDFDB.LanguageUtils.LanguageStrings.NOTIFICATION_REPLY), {type: "success"});