new field

This commit is contained in:
Emily 2020-10-18 13:10:22 +11:00
parent 688d3e82ae
commit 5f117d348c
1 changed files with 19 additions and 18 deletions

View File

@ -2,10 +2,11 @@ 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 = '',
examples = '',
enabled = true, enabled = true,
guildOnly = false, guildOnly = false,
devOnly = false, devOnly = false,
@ -16,7 +17,7 @@ class Command {
}) { }) {
this.client = client; this.client = client;
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown }; this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
this.help = { name, description, category, usage, examples }; this.help = { name, description, category, usage, parameters, examples };
} }
} }
module.exports = Command; module.exports = Command;