Fix deletable message bug
This commit is contained in:
parent
8b6beb0b06
commit
c35cfbf962
@ -15,7 +15,7 @@ module.exports = {
|
||||
message.channel.messages.fetch(repliedMessageId)
|
||||
.then(repliedMessage => {
|
||||
repliedMessage.reply(fn.spongebob({ args: repliedMessage.content })).then(() => {
|
||||
message.delete();
|
||||
if (message.deletable) message.delete();
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
@ -23,7 +23,7 @@ module.exports = {
|
||||
});
|
||||
} else {
|
||||
message.channel.send(fn.spongebob(commandData)).then(() => {
|
||||
message.delete();
|
||||
if (message.deletable) message.delete();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user