Prepare for subcommand
parent
ef05fc5891
commit
9eca427ce9
|
@ -18,6 +18,8 @@ export default class Command {
|
||||||
|
|
||||||
guildOnly?: boolean
|
guildOnly?: boolean
|
||||||
|
|
||||||
|
subcommands: Command[]
|
||||||
|
|
||||||
public run(message: Message, args: string[]) {} // eslint-disable-line
|
public run(message: Message, args: string[]) {} // eslint-disable-line
|
||||||
|
|
||||||
constructor(client: Client) {
|
constructor(client: Client) {
|
||||||
|
@ -28,6 +30,7 @@ export default class Command {
|
||||||
this.aliases = [];
|
this.aliases = [];
|
||||||
this.guildOnly = true;
|
this.guildOnly = true;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
this.subcommands = [];
|
||||||
this.permissions = {};
|
this.permissions = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue