delete triggering message

This commit is contained in:
rhearmas 2019-12-13 14:31:01 -05:00
parent 8a7766f116
commit d28559c43b

View file

@ -1,4 +1,5 @@
exports.run = (client, message, args, level) => {
message.delete();
if (!args[0]) {
const myCommands = message.guild ? client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level) : client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level && cmd.conf.guildOnly !== true);