Command: make role permission checking manual for now

This commit is contained in:
Cynthia Foxwell 2021-03-14 20:28:48 -06:00
parent 93b9939066
commit f98488a2df

View file

@ -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.";
}