Added the ability to make the bot only run for specific users
This commit is contained in:
parent
0d8828bc40
commit
fd61bbf448
2 changed files with 17 additions and 0 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue