Fix deletable message bug

This commit is contained in:
Skylar Grant 2023-02-12 21:22:21 -05:00
parent 8b6beb0b06
commit c35cfbf962

View File

@ -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();
});
}
}