mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
16 lines
529 B
JavaScript
16 lines
529 B
JavaScript
|
module.exports = class Command {
|
||
|
constructor(client, name, options = {}) {
|
||
|
this.client = client;
|
||
|
this.name = options.name || name;
|
||
|
this.aliases = options.aliases || [];
|
||
|
this.description = options.description || "No description provided.";
|
||
|
this.category = options.category || "Miscellaneous";
|
||
|
this.usage = options.usage || "No usage provided.";
|
||
|
}
|
||
|
|
||
|
// eslint-disable-next-line no-unused-vars
|
||
|
async run(message, args) {
|
||
|
throw new Error(`Command ${this.name} doesn't provide a run method.`)
|
||
|
}
|
||
|
}
|