JaBa/base/BaseCommand.js

18 lines
No EOL
386 B
JavaScript

class BaseCommand {
constructor(options) {
/**
* @type {import("@discordjs/builders").SlashCommandBuilder | import("discord.js").ApplicationCommandData}
*/
this.command = options.command;
/**
* @type {Array<String>}
*/
this.aliases = options.aliases;
/**
* @type {Boolean}
*/
this.guildOnly = options.guildOnly || true;
}
}
module.exports = BaseCommand;