v2.0 #55

Merged
Vylpes merged 73 commits from develop into main 2021-10-04 19:45:15 +01:00
2 changed files with 17 additions and 0 deletions
Showing only changes of commit fd61bbf448 - Show all commits

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,

View file

@ -4,6 +4,7 @@ class command {
this._roles = [];
this._requiredConfigs = [];
this._users = [];
}
// Description
@ -50,6 +51,15 @@ class command {
set requiredConfigs(conf) {
this._requiredConfigs.push(conf);
}
// Users
get users() {
return this._users;
}
set users(userid) {
this._users.push(userid);
}
}
module.exports = command;