Send a message when command get blocked

This commit is contained in:
Loic Bersier 2018-12-30 03:23:51 +01:00
parent cbc79df4aa
commit 714ac11c1e

View file

@ -10,6 +10,7 @@ class CommandBlockedListener extends Listener {
exec(message, command, reason) { exec(message, command, reason) {
console.log(`${message.author.username} was blocked from using ${command.id} because of ${reason}!`); console.log(`${message.author.username} was blocked from using ${command.id} because of ${reason}!`);
return message.reply(`You can't use this command beacause of ${reason}`);
} }
} }