From 91d851628d2078e70b79e4aa7e464297eca745ce Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Sat, 14 Jun 2025 17:30:28 +0200 Subject: [PATCH] feat(APIApplication): add `approximate_user_authorization_count` (#1272) --- deno/payloads/v10/application.ts | 6 +++++- deno/payloads/v9/application.ts | 6 +++++- payloads/v10/application.ts | 6 +++++- payloads/v9/application.ts | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/deno/payloads/v10/application.ts b/deno/payloads/v10/application.ts index d058909f..415411f8 100644 --- a/deno/payloads/v10/application.ts +++ b/deno/payloads/v10/application.ts @@ -111,9 +111,13 @@ export interface APIApplication { */ 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 application */ diff --git a/deno/payloads/v9/application.ts b/deno/payloads/v9/application.ts index d058909f..415411f8 100644 --- a/deno/payloads/v9/application.ts +++ b/deno/payloads/v9/application.ts @@ -111,9 +111,13 @@ export interface APIApplication { */ 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 application */ diff --git a/payloads/v10/application.ts b/payloads/v10/application.ts index 13c4f45f..5bf55866 100644 --- a/payloads/v10/application.ts +++ b/payloads/v10/application.ts @@ -111,9 +111,13 @@ export interface APIApplication { */ 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 application */ diff --git a/payloads/v9/application.ts b/payloads/v9/application.ts index 13c4f45f..5bf55866 100644 --- a/payloads/v9/application.ts +++ b/payloads/v9/application.ts @@ -111,9 +111,13 @@ export interface APIApplication { */ 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 application */