diff --git a/packages/bot/src/transformers/application.ts b/packages/bot/src/transformers/application.ts index 172bed04f..da229bf27 100644 --- a/packages/bot/src/transformers/application.ts +++ b/packages/bot/src/transformers/application.ts @@ -35,6 +35,7 @@ export function transformApplication(bot: Bot, payload: { application: DiscordAp guild: payload.application.guild ? bot.transformers.guild(bot, { guild: payload.application.guild, shardId: payload.shardId }) : undefined, approximateGuildCount: payload.application.approximate_guild_count, approximateUserInstallCount: payload.application.approximate_user_install_count, + approximateUserAuthorizationCount: payload.application.approximate_user_authorization_count, bot: payload.application.bot ? bot.transformers.user(bot, payload.application.bot as DiscordUser) : undefined, interactionsEndpointUrl: payload.application.interactions_endpoint_url ? payload.application.interactions_endpoint_url : undefined, redirectUris: payload.application.redirect_uris, diff --git a/packages/bot/src/transformers/types.ts b/packages/bot/src/transformers/types.ts index 4304c14e6..84291aa2a 100644 --- a/packages/bot/src/transformers/types.ts +++ b/packages/bot/src/transformers/types.ts @@ -170,6 +170,7 @@ export interface Application { customInstallUrl?: string approximateGuildCount?: number approximateUserInstallCount?: number + approximateUserAuthorizationCount?: number installParams?: ApplicationInstallParams bot?: User redirectUris?: string[] diff --git a/packages/types/src/discord/application.ts b/packages/types/src/discord/application.ts index 4b2c87a44..fb18f864f 100644 --- a/packages/types/src/discord/application.ts +++ b/packages/types/src/discord/application.ts @@ -48,8 +48,10 @@ export interface DiscordApplication { flags?: ApplicationFlags /** An approximate count of the app's guild membership. */ approximate_guild_count?: number - /** Approximate count of users that have installed the app. */ + /** Approximate count of users that have installed the app. (authorized with `application.commands` as a scope) */ approximate_user_install_count?: number + /** Approximate count of users that have OAuth2 authorizations for the app */ + approximate_user_authorization_count?: number /** Array of redirect URIs for the app */ redirect_uris?: string[] /** Interactions endpoint URL for the app */