new field
This commit is contained in:
parent
688d3e82ae
commit
5f117d348c
1 changed files with 19 additions and 18 deletions
|
@ -1,22 +1,23 @@
|
|||
class Command {
|
||||
|
||||
constructor (client, {
|
||||
name = null,
|
||||
description = "No description provided.",
|
||||
category = "Miscellaneous",
|
||||
usage = "No usage provided.",
|
||||
examples = "",
|
||||
enabled = true,
|
||||
guildOnly = false,
|
||||
devOnly = false,
|
||||
aliases = new Array(),
|
||||
userPerms = new Array(),
|
||||
botPerms = new Array (),
|
||||
cooldown = 2000
|
||||
}) {
|
||||
this.client = client;
|
||||
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
|
||||
this.help = { name, description, category, usage, examples };
|
||||
}
|
||||
constructor (client, {
|
||||
name = null,
|
||||
description = 'No description provided.',
|
||||
category = 'Miscellaneous',
|
||||
usage = 'No usage provided.',
|
||||
parameters = '',
|
||||
examples = '',
|
||||
enabled = true,
|
||||
guildOnly = false,
|
||||
devOnly = false,
|
||||
aliases = new Array(),
|
||||
userPerms = new Array(),
|
||||
botPerms = new Array (),
|
||||
cooldown = 2000
|
||||
}) {
|
||||
this.client = client;
|
||||
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
|
||||
this.help = { name, description, category, usage, parameters, examples };
|
||||
}
|
||||
}
|
||||
module.exports = Command;
|
||||
|
|
Loading…
Reference in a new issue