2022-07-25 22:09:02 +05:00
|
|
|
/* eslint-disable no-unused-vars */
|
2022-07-23 17:14:42 +05:00
|
|
|
class BaseCommand {
|
2022-07-25 22:09:02 +05:00
|
|
|
constructor(options, client) {
|
2022-07-23 17:14:42 +05:00
|
|
|
/**
|
|
|
|
* @type {import("@discordjs/builders").SlashCommandBuilder | import("discord.js").ApplicationCommandData}
|
|
|
|
*/
|
|
|
|
this.command = options.command;
|
|
|
|
/**
|
|
|
|
* @type {Array<String>}
|
|
|
|
*/
|
2022-07-25 22:09:02 +05:00
|
|
|
this.aliases = options.aliases || [];
|
2022-07-23 17:14:42 +05:00
|
|
|
/**
|
|
|
|
* @type {Boolean}
|
|
|
|
*/
|
|
|
|
this.guildOnly = options.guildOnly || true;
|
2022-07-25 22:09:02 +05:00
|
|
|
/**
|
|
|
|
* @type {Boolean}
|
|
|
|
*/
|
|
|
|
this.ownerOnly = options.ownerOnly || false;
|
2022-07-23 17:14:42 +05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = BaseCommand;
|