diff --git a/src/codeyCommand.ts b/src/codeyCommand.ts index c57793c6..ad1199de 100644 --- a/src/codeyCommand.ts +++ b/src/codeyCommand.ts @@ -1,4 +1,4 @@ -import { Command as SapphireCommand, container, SapphireClient } from '@sapphire/framework'; +import { ChatInputCommand, Command as SapphireCommand, container, SapphireClient } from '@sapphire/framework'; import { Message, MessagePayload, WebhookEditMessageOptions } from 'discord.js'; import { APIMessage } from 'discord-api-types/v9'; import { isMessageInstance } from '@sapphire/discord.js-utilities'; @@ -31,6 +31,11 @@ export class CodeyCommand extends SapphireCommand { commandOptions!: CodeyCommandOptions; + // Register application commands + public override registerApplicationCommands(registry: ChatInputCommand.Registry) { + registry.registerChatInputCommand((builder) => builder.setName(this.name).setDescription(this.description)); + } + // Regular command public async messageRun(message: Message): Promise> { const { client } = container;