Command: make role permission checking manual for now
This commit is contained in:
parent
93b9939066
commit
f98488a2df
1 changed files with 0 additions and 15 deletions
|
@ -1,10 +1,7 @@
|
|||
const {Permissions} = require("eris/lib/Constants");
|
||||
|
||||
class Command {
|
||||
constructor(name) {
|
||||
this.name = name;
|
||||
this.aliases = [];
|
||||
this.permissions = {};
|
||||
this.helpText = "No description provided.";
|
||||
this.category = "unsorted";
|
||||
}
|
||||
|
@ -19,18 +16,6 @@ class Command {
|
|||
return this.aliases.includes(alias);
|
||||
}
|
||||
|
||||
addPermission(permission) {
|
||||
if (Permissions[permission]) {
|
||||
this.permissions[permission] = true;
|
||||
}
|
||||
}
|
||||
removePermission(permission) {
|
||||
delete this.permissions[permission];
|
||||
}
|
||||
getPermissions() {
|
||||
return this.permissions;
|
||||
}
|
||||
|
||||
callback() {
|
||||
return "Callback not overwritten.";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue