Send a message when command get blocked
This commit is contained in:
parent
cbc79df4aa
commit
714ac11c1e
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ class CommandBlockedListener extends Listener {
|
|||
|
||||
exec(message, command, 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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue