forked from Galactic/modmail
21 lines
390 B
JavaScript
21 lines
390 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; |