diff --git a/deno/payloads/v10/_interactions/_applicationCommands/entryPoint.ts b/deno/payloads/v10/_interactions/_applicationCommands/entryPoint.ts new file mode 100644 index 00000000..2654fd07 --- /dev/null +++ b/deno/payloads/v10/_interactions/_applicationCommands/entryPoint.ts @@ -0,0 +1,26 @@ +import type { APIApplicationCommandInteractionWrapper, ApplicationCommandType } from '../applicationCommands.ts'; +import type { APIDMInteractionWrapper, APIGuildInteractionWrapper } from '../base.ts'; +import type { APIBaseApplicationCommandInteractionData } from './internals.ts'; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data + */ +export type APIPrimaryEntryPointCommandInteractionData = + APIBaseApplicationCommandInteractionData; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandInteraction = + APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandGuildInteraction = + APIGuildInteractionWrapper; diff --git a/deno/payloads/v10/_interactions/applicationCommands.ts b/deno/payloads/v10/_interactions/applicationCommands.ts index d0a945f2..4dbdef13 100644 --- a/deno/payloads/v10/_interactions/applicationCommands.ts +++ b/deno/payloads/v10/_interactions/applicationCommands.ts @@ -13,12 +13,19 @@ import type { APIContextMenuInteraction, APIContextMenuInteractionData, } from './_applicationCommands/contextMenu.ts'; +import type { + APIPrimaryEntryPointCommandDMInteraction, + APIPrimaryEntryPointCommandGuildInteraction, + APIPrimaryEntryPointCommandInteraction, + APIPrimaryEntryPointCommandInteractionData, +} from './_applicationCommands/entryPoint.ts'; import type { APIBaseInteraction } from './base.ts'; import type { InteractionType } from './responses.ts'; export * from './_applicationCommands/chatInput.ts'; export * from './_applicationCommands/contextMenu.ts'; export * from './_applicationCommands/permissions.ts'; +export * from './_applicationCommands/entryPoint.ts'; /** * https://discord.com/developers/docs/interactions/application-commands#application-command-object @@ -185,7 +192,8 @@ export enum EntryPointCommandHandlerType { */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData - | APIContextMenuInteractionData; + | APIContextMenuInteractionData + | APIPrimaryEntryPointCommandInteractionData; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object @@ -202,18 +210,23 @@ export type APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandInteraction = + APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandGuildInteraction = + APIGuildInteractionWrapper; diff --git a/deno/payloads/v9/_interactions/applicationCommands.ts b/deno/payloads/v9/_interactions/applicationCommands.ts index afb699e6..e15579d9 100644 --- a/deno/payloads/v9/_interactions/applicationCommands.ts +++ b/deno/payloads/v9/_interactions/applicationCommands.ts @@ -13,12 +13,19 @@ import type { APIContextMenuInteraction, APIContextMenuInteractionData, } from './_applicationCommands/contextMenu.ts'; +import type { + APIPrimaryEntryPointCommandDMInteraction, + APIPrimaryEntryPointCommandGuildInteraction, + APIPrimaryEntryPointCommandInteraction, + APIPrimaryEntryPointCommandInteractionData, +} from './_applicationCommands/entryPoint.ts'; import type { APIBaseInteraction } from './base.ts'; import type { InteractionType } from './responses.ts'; export * from './_applicationCommands/chatInput.ts'; export * from './_applicationCommands/contextMenu.ts'; export * from './_applicationCommands/permissions.ts'; +export * from './_applicationCommands/entryPoint.ts'; /** * https://discord.com/developers/docs/interactions/application-commands#application-command-object @@ -185,7 +192,8 @@ export enum EntryPointCommandHandlerType { */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData - | APIContextMenuInteractionData; + | APIContextMenuInteractionData + | APIPrimaryEntryPointCommandInteractionData; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object @@ -202,18 +210,23 @@ export type APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandInteraction = + APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandGuildInteraction = + APIGuildInteractionWrapper; diff --git a/payloads/v10/_interactions/applicationCommands.ts b/payloads/v10/_interactions/applicationCommands.ts index d74429cb..f0df0de0 100644 --- a/payloads/v10/_interactions/applicationCommands.ts +++ b/payloads/v10/_interactions/applicationCommands.ts @@ -13,12 +13,19 @@ import type { APIContextMenuInteraction, APIContextMenuInteractionData, } from './_applicationCommands/contextMenu'; +import type { + APIPrimaryEntryPointCommandDMInteraction, + APIPrimaryEntryPointCommandGuildInteraction, + APIPrimaryEntryPointCommandInteraction, + APIPrimaryEntryPointCommandInteractionData, +} from './_applicationCommands/entryPoint'; import type { APIBaseInteraction } from './base'; import type { InteractionType } from './responses'; export * from './_applicationCommands/chatInput'; export * from './_applicationCommands/contextMenu'; export * from './_applicationCommands/permissions'; +export * from './_applicationCommands/entryPoint'; /** * https://discord.com/developers/docs/interactions/application-commands#application-command-object @@ -185,7 +192,8 @@ export enum EntryPointCommandHandlerType { */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData - | APIContextMenuInteractionData; + | APIContextMenuInteractionData + | APIPrimaryEntryPointCommandInteractionData; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object @@ -202,18 +210,23 @@ export type APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandInteraction = + APIApplicationCommandInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandDMInteraction = APIDMInteractionWrapper; + +/** + * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object + */ +export type APIPrimaryEntryPointCommandGuildInteraction = + APIGuildInteractionWrapper; diff --git a/payloads/v9/_interactions/applicationCommands.ts b/payloads/v9/_interactions/applicationCommands.ts index 4963b289..3833a4f1 100644 --- a/payloads/v9/_interactions/applicationCommands.ts +++ b/payloads/v9/_interactions/applicationCommands.ts @@ -13,12 +13,19 @@ import type { APIContextMenuInteraction, APIContextMenuInteractionData, } from './_applicationCommands/contextMenu'; +import type { + APIPrimaryEntryPointCommandDMInteraction, + APIPrimaryEntryPointCommandGuildInteraction, + APIPrimaryEntryPointCommandInteraction, + APIPrimaryEntryPointCommandInteractionData, +} from './_applicationCommands/entryPoint'; import type { APIBaseInteraction } from './base'; import type { InteractionType } from './responses'; export * from './_applicationCommands/chatInput'; export * from './_applicationCommands/contextMenu'; export * from './_applicationCommands/permissions'; +export * from './_applicationCommands/entryPoint'; /** * https://discord.com/developers/docs/interactions/application-commands#application-command-object @@ -185,7 +192,8 @@ export enum EntryPointCommandHandlerType { */ export type APIApplicationCommandInteractionData = | APIChatInputApplicationCommandInteractionData - | APIContextMenuInteractionData; + | APIContextMenuInteractionData + | APIPrimaryEntryPointCommandInteractionData; /** * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object @@ -202,18 +210,23 @@ export type APIApplicationCommandInteractionWrapper