MessageUtilities fixed bug of editing a message that is already being edited

This commit is contained in:
Mirco Wittrien 2018-11-10 10:16:40 +01:00
parent 3f95f8c636
commit 047bcd18f5
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class MessageUtilities {
getDescription () {return "Offers a number of useful message options. Remap the keybindings in the settings.";}
getVersion () {return "1.4.0";}
getVersion () {return "1.4.1";}
getAuthor () {return "DevilBro";}
@ -293,7 +293,7 @@ class MessageUtilities {
}
doEdit (message) {
if (message.author.id == BDFDB.myData.id) {
if (message.author.id == BDFDB.myData.id && !message.div.querySelector("textarea")) {
this.MessageActions.startEditMessage(message.channel_id, message.id, message.content);
}
}