woomy-v2/bot/base/Command.js

21 lines
506 B
JavaScript
Raw Normal View History

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 02:29:49 +00:00
permLevel = "User",
cooldown = 2000
2020-08-18 04:58:36 +00:00
}) {
this.client = client;
2020-10-10 02:29:49 +00:00
this.conf = { enabled, guildOnly, devOnly, aliases, permLevel, cooldown };
2020-08-18 04:58:36 +00:00
this.help = { name, description, category, usage };
}
}
module.exports = Command;