© 2026 Hedgehog Software, LLC
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'>) { . . . } }
Join the Discord to ask follow-up questions and connect with the community
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,286 Members