woomy-v2/bot/base/Command.js

24 lines
682 B
JavaScript
Raw Normal View History

2020-08-18 04:58:36 +00:00
class Command {
2020-10-18 02:10:22 +00:00
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 };
}
2020-08-18 04:58:36 +00:00
}
module.exports = Command;