import { Subcommand } from '@sapphire/plugin-subcommands';
export class warRoomCommand extends Subcommand {
constructor(context, options) {
super(context, {
...options,
name: 'warRoom',
description: 'War Rooms Command.',
aliases: ['wr', 'room'],
subcommands: [
{ name: 'd', preconditions: ['isMilcom'], messageRun: 'delete' },
{
name: 'i',
preconditions: ['isMember'],
messageRun: 'info',
},
],
});
}
async info(message, args) {
console.log(args.command);
const id = await this.getId(message);
if (!id) return;
}
// delete(), getId() etc.
}
import { Subcommand } from '@sapphire/plugin-subcommands';
export class warRoomCommand extends Subcommand {
constructor(context, options) {
super(context, {
...options,
name: 'warRoom',
description: 'War Rooms Command.',
aliases: ['wr', 'room'],
subcommands: [
{ name: 'd', preconditions: ['isMilcom'], messageRun: 'delete' },
{
name: 'i',
preconditions: ['isMember'],
messageRun: 'info',
},
],
});
}
async info(message, args) {
console.log(args.command);
const id = await this.getId(message);
if (!id) return;
}
// delete(), getId() etc.
}