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 {
|
class Command {
|
||||||
|
|
||||||
constructor (client, {
|
constructor (client, {
|
||||||
name = null,
|
name = null,
|
||||||
description = "No description provided.",
|
description = 'No description provided.',
|
||||||
category = "Miscellaneous",
|
category = 'Miscellaneous',
|
||||||
usage = "No usage provided.",
|
usage = 'No usage provided.',
|
||||||
examples = "",
|
parameters = '',
|
||||||
enabled = true,
|
examples = '',
|
||||||
guildOnly = false,
|
enabled = true,
|
||||||
devOnly = false,
|
guildOnly = false,
|
||||||
aliases = new Array(),
|
devOnly = false,
|
||||||
userPerms = new Array(),
|
aliases = new Array(),
|
||||||
botPerms = new Array (),
|
userPerms = new Array(),
|
||||||
cooldown = 2000
|
botPerms = new Array (),
|
||||||
}) {
|
cooldown = 2000
|
||||||
this.client = client;
|
}) {
|
||||||
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
|
this.client = client;
|
||||||
this.help = { name, description, category, usage, examples };
|
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
|
||||||
}
|
this.help = { name, description, category, usage, parameters, examples };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
module.exports = Command;
|
module.exports = Command;
|
||||||
|
|
Loading…
Reference in a new issue