forked from Galactic/modmail
21 lines
386 B
JavaScript
21 lines
386 B
JavaScript
class Command {
|
|
|
|
constructor(client, options) {
|
|
|
|
Object.entries(options).forEach(([key, val]) => {
|
|
this[key] = val;
|
|
});
|
|
|
|
if (!this.name) throw new Error(`Missing name for command`);
|
|
|
|
this.client = client;
|
|
|
|
}
|
|
|
|
async execute() {
|
|
throw new Error(`Missing execute in ${this.name}`);
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Command; |