diff --git a/packages/create-reciple/templates/typescript-decorators/src/commands/PingCommand.ts b/packages/create-reciple/templates/typescript-decorators/src/commands/PingCommand.ts index 3a0e91db..0876bb21 100644 --- a/packages/create-reciple/templates/typescript-decorators/src/commands/PingCommand.ts +++ b/packages/create-reciple/templates/typescript-decorators/src/commands/PingCommand.ts @@ -1,5 +1,4 @@ import { setContextMenuCommand, setMessageCommand, setRecipleModule, setRecipleModuleLoad, setRecipleModuleStart, setRecipleModuleUnload, setSlashCommand } from '@reciple/decorators'; -import { ApplicationCommandType } from 'discord-api-types/v10'; import { AnyCommandExecuteData, CommandType, RecipleModuleData } from "reciple"; @setRecipleModule() @@ -27,7 +26,7 @@ export class PingCommand implements RecipleModuleData { /** * Sets the commands */ - @setContextMenuCommand({ name: 'ping', type: ApplicationCommandType.Message }) + @setContextMenuCommand({ name: 'ping', type: 'Message' }) @setMessageCommand({ name: 'ping', description: 'Replies with pong!' }) @setSlashCommand({ name: 'ping', description: 'Replies with pong!' }) async handleCommandExecute(data: AnyCommandExecuteData): Promise { diff --git a/packages/create-reciple/templates/typescript/src/commands/PingCommand.ts b/packages/create-reciple/templates/typescript/src/commands/PingCommand.ts index 603b0e81..363c7b62 100644 --- a/packages/create-reciple/templates/typescript/src/commands/PingCommand.ts +++ b/packages/create-reciple/templates/typescript/src/commands/PingCommand.ts @@ -1,11 +1,10 @@ -import { ApplicationCommandType } from 'discord-api-types/v10'; import { AnyCommandExecuteData, CommandType, ContextMenuCommandBuilder, MessageCommandBuilder, RecipleModuleData, SlashCommandBuilder, type AnyCommandResolvable } from "reciple"; export class PingCommand implements RecipleModuleData { public commands: AnyCommandResolvable[] = [ new ContextMenuCommandBuilder() .setName('ping') - .setType(ApplicationCommandType.Message) + .setType('Message') .setExecute(data => this.handleCommandExecute(data)), new MessageCommandBuilder() .setName('ping')