Added the ability to make the bot only run for specific users

This commit is contained in:
Vylpes 2020-10-26 20:29:14 +00:00
parent 0d8828bc40
commit fd61bbf448
2 changed files with 17 additions and 0 deletions

View file

@ -31,6 +31,13 @@ class util {
}
}
let users = command.users;
if (!users.includes(message.member.id)) {
message.reply(`You do not have permission to run this command`);
return;
}
command[command.run]({
"command": name,
"arguments": args,