Don't send message when missing perm

This commit is contained in:
loicbersier 2019-11-29 22:29:56 +01:00
parent 868779edf7
commit 4e86a6f3c5

View file

@ -12,7 +12,7 @@ class missingPermissionsListener extends Listener {
switch(type) {
case 'client':
if (missing == 'SEND_MESSAGES') {
return message.author.send(`Im missing the required permissions for this command!, \`${missing}\``);
return;
} else {
message.reply(`Im missing the required permissions for this command!, \`${missing}\``);
}