2020-08-18 04:58:36 +00:00
|
|
|
class Command {
|
|
|
|
|
|
|
|
constructor (client, {
|
|
|
|
name = null,
|
|
|
|
description = "No description provided.",
|
|
|
|
category = "Miscellaneous",
|
|
|
|
usage = "No usage provided.",
|
|
|
|
enabled = true,
|
|
|
|
guildOnly = false,
|
|
|
|
devOnly = false,
|
|
|
|
aliases = new Array(),
|
2020-10-10 03:22:39 +00:00
|
|
|
userPerms = new Array(),
|
|
|
|
botPerms = new Array (),
|
2020-10-10 02:29:49 +00:00
|
|
|
cooldown = 2000
|
2020-08-18 04:58:36 +00:00
|
|
|
}) {
|
|
|
|
this.client = client;
|
2020-10-10 03:22:39 +00:00
|
|
|
this.conf = { enabled, guildOnly, devOnly, aliases, userPerms, botPerms, cooldown };
|
2020-08-18 04:58:36 +00:00
|
|
|
this.help = { name, description, category, usage };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Command;
|