new field

This commit is contained in:
Emily 2020-10-18 13:10:22 +11:00
parent 688d3e82ae
commit 5f117d348c

View file

@ -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;