diff --git a/types/src/applications/application.ts b/types/src/applications/application.ts index 390231af..e2239e93 100644 --- a/types/src/applications/application.ts +++ b/types/src/applications/application.ts @@ -26,6 +26,12 @@ export interface ApplicationPayload { install_params?: ApplicationInstallParams; custom_install_url?: string; role_connections_verification_url?: string; + integration_types?: ApplicationIntegrationType[]; +} + +export enum ApplicationIntegrationType { + GUILD_INSTALL = 0, + USER_INSTALL = 1, } export interface ApplicationInstallParams { diff --git a/types/src/interactions/command.ts b/types/src/interactions/command.ts index 2c617a3b..850cff0f 100644 --- a/types/src/interactions/command.ts +++ b/types/src/interactions/command.ts @@ -1,3 +1,4 @@ +import { ApplicationIntegrationType } from "../applications/application.ts"; import { ChannelType } from "../channels/base.ts"; import { Locales } from "../etc/locales.ts"; @@ -15,6 +16,14 @@ export interface ApplicationCommandPayload { dm_permission?: boolean; nsfw?: boolean; version: string; + contexts?: ApplicationCommandContextType[]; + integration_types?: ApplicationIntegrationType[]; +} + +export enum ApplicationCommandContextType { + GUILD = 0, + BOT_DM = 1, + PRIVATE_CHANNEL = 2, } export enum ApplicationCommandType { diff --git a/types/src/interactions/interaction.ts b/types/src/interactions/interaction.ts index 5c71d10b..33c91634 100644 --- a/types/src/interactions/interaction.ts +++ b/types/src/interactions/interaction.ts @@ -1,3 +1,4 @@ +import { ApplicationIntegrationType } from "../applications/application.ts"; import { ChannelPayload } from "../channels/base.ts"; import { EmbedPayload } from "../channels/embed.ts"; import { AllowedMentionsPayload } from "../channels/etc.ts"; @@ -37,6 +38,7 @@ export interface InteractionPayload { app_permissions?: string; locale?: Locales; guild_locale?: Locales; + authorizing_integration_owners: Record; } export enum InteractionType {