фиксики помогите

This commit is contained in:
JonnyBro 2022-02-15 01:45:20 +05:00
parent 36b3b53b72
commit 7f56231876

View file

@ -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");