diff --git a/packages/bot/src/transformers/application.ts b/packages/bot/src/transformers/application.ts index b44131230..f05465d55 100644 --- a/packages/bot/src/transformers/application.ts +++ b/packages/bot/src/transformers/application.ts @@ -36,7 +36,7 @@ export function transformApplication(bot: Bot, payload: { application: DiscordAp approximateGuildCount: payload.application.approximate_guild_count, approximateUserInstallCount: payload.application.approximate_user_install_count, bot: payload.application.bot ? bot.transformers.user(bot, payload.application.bot as DiscordUser) : undefined, - interactionsEndpointUrl: payload.application.interactions_endpoint_url, + interactionsEndpointUrl: payload.application.interactions_endpoint_url ? payload.application.interactions_endpoint_url : undefined, redirectUris: payload.application.redirect_uris, roleConnectionsVerificationUrl: payload.application.role_connections_verification_url, tags: payload.application.tags, diff --git a/packages/types/src/discord.ts b/packages/types/src/discord.ts index 3fc4ad42d..43ba6a925 100644 --- a/packages/types/src/discord.ts +++ b/packages/types/src/discord.ts @@ -393,7 +393,7 @@ export interface DiscordApplication { /** the application's default custom authorization link, if enabled */ custom_install_url?: string /** the application's role connection verification entry point, which when configured will render the app as a verification method in the guild role verification configuration */ - role_connections_verification_url?: string + role_connections_verification_url?: string | null /** An approximate count of the app's guild membership. */ approximate_guild_count?: number /** Approximate count of users that have installed the app. */ @@ -403,7 +403,7 @@ export interface DiscordApplication { /** Array of redirect URIs for the app */ redirect_uris?: string[] /** Interactions endpoint URL for the app */ - interactions_endpoint_url?: string + interactions_endpoint_url?: string | null } /** https://discord.com/developers/docs/resources/application#application-object-application-integration-type-configuration-object */