diff --git a/packages/builders/src/interactions/contextMenuCommands/ContextMenuCommandBuilder.ts b/packages/builders/src/interactions/contextMenuCommands/ContextMenuCommandBuilder.ts index 53c6ae70a268..52b11e3654c7 100644 --- a/packages/builders/src/interactions/contextMenuCommands/ContextMenuCommandBuilder.ts +++ b/packages/builders/src/interactions/contextMenuCommands/ContextMenuCommandBuilder.ts @@ -3,7 +3,7 @@ import type { LocaleString, LocalizationMap, Permissions, - RESTPostAPIApplicationCommandsJSONBody, + RESTPostAPIContextMenuApplicationCommandsJSONBody, } from 'discord-api-types/v10'; import { validateRequiredParameters, @@ -180,7 +180,7 @@ export class ContextMenuCommandBuilder { * * **Note:** Calling this function will validate required properties based on their conditions. */ - public toJSON(): RESTPostAPIApplicationCommandsJSONBody { + public toJSON(): RESTPostAPIContextMenuApplicationCommandsJSONBody { validateRequiredParameters(this.name, this.type); validateLocalizationMap(this.name_localizations); diff --git a/packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts b/packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts index 39c19575dfa2..72110945a9a2 100644 --- a/packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts +++ b/packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts @@ -2,7 +2,7 @@ import type { APIApplicationCommandOption, LocalizationMap, Permissions, - RESTPostAPIApplicationCommandsJSONBody, + RESTPostAPIChatInputApplicationCommandsJSONBody, } from 'discord-api-types/v10'; import { mix } from 'ts-mixer'; import { @@ -69,7 +69,7 @@ export class SlashCommandBuilder { * * **Note:** Calling this function will validate required properties based on their conditions. */ - public toJSON(): RESTPostAPIApplicationCommandsJSONBody { + public toJSON(): RESTPostAPIChatInputApplicationCommandsJSONBody { validateRequiredParameters(this.name, this.description, this.options); validateLocalizationMap(this.name_localizations);