diff --git a/events/messageCreate.js b/events/messageCreate.js index 0bb2fe8d..1d91eef1 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -200,7 +200,11 @@ module.exports = class { try { cmd.run(message, args, data); - if (cmd.help.category === "Moderation" && data.guild.autoDeleteModCommands) setTimeout(() => message.delete(), 3000); + if (cmd.help.category === "Moderation" && data.guild.autoDeleteModCommands) { + setTimeout(() => { + if (message.deletable) message.delete(); + }, 3000); + } } catch (e) { console.error(e); return message.error("misc:ERR_OCCURRED");