HiddenPhox/src/lib/command.js

26 lines
450 B
JavaScript
Raw Normal View History

2021-03-15 01:41:40 +00:00
class Command {
constructor(name) {
this.name = name;
this.aliases = [];
this.helpText = "No description provided.";
this.category = "unsorted";
2021-03-15 02:30:09 +00:00
this.guildOnly = false;
2021-03-15 01:41:40 +00:00
}
addAlias(alias) {
this.aliases.push(alias);
}
getAliases() {
return this.aliases;
}
hasAlias(alias) {
return this.aliases.includes(alias);
}
callback() {
return "Callback not overwritten.";
}
}
module.exports = Command;