import { Command, RegisterSubCommand } from '@kaname-png/plugin-subcommands-advanced';
import { BucketScope } from '@sapphire/framework';
@RegisterSubCommand('legacy', (builder) =>
builder
.setName('raidrequest')
.setDescription("Mentions the raid request role.")
.addStringOption((option) =>
option
.setName("group")
.setDescription("The group requesting a raid.")
.setRequired(true)
),
)
export class UserCommand extends Command {
public constructor(context: Command.Context) {
super(context, {
cooldownDelay: 600_000, // 10 minutes
cooldownScope: BucketScope.Global,
});
}
public override async chatInputRun(interaction: Command.ChatInputInteraction<'cached'>) {
. . .
}
}
import { Command, RegisterSubCommand } from '@kaname-png/plugin-subcommands-advanced';
import { BucketScope } from '@sapphire/framework';
@RegisterSubCommand('legacy', (builder) =>
builder
.setName('raidrequest')
.setDescription("Mentions the raid request role.")
.addStringOption((option) =>
option
.setName("group")
.setDescription("The group requesting a raid.")
.setRequired(true)
),
)
export class UserCommand extends Command {
public constructor(context: Command.Context) {
super(context, {
cooldownDelay: 600_000, // 10 minutes
cooldownScope: BucketScope.Global,
});
}
public override async chatInputRun(interaction: Command.ChatInputInteraction<'cached'>) {
. . .
}
}