mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
feat(ClientApplication): add approximateUserAuthorizationCount (#10933)
Co-authored-by: Danial Raza <danialrazafb@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -163,6 +163,17 @@ class ClientApplication extends Application {
|
|||||||
this.approximateUserInstallCount ??= null;
|
this.approximateUserInstallCount ??= null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ('approximate_user_authorization_count' in data) {
|
||||||
|
/**
|
||||||
|
* An approximate amount of users that have OAuth2 authorizations for this application.
|
||||||
|
*
|
||||||
|
* @type {?number}
|
||||||
|
*/
|
||||||
|
this.approximateUserAuthorizationCount = data.approximate_user_authorization_count;
|
||||||
|
} else {
|
||||||
|
this.approximateUserAuthorizationCount ??= null;
|
||||||
|
}
|
||||||
|
|
||||||
if ('guild_id' in data) {
|
if ('guild_id' in data) {
|
||||||
/**
|
/**
|
||||||
* The id of the guild associated with this application.
|
* The id of the guild associated with this application.
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -1159,6 +1159,7 @@ export class ClientApplication extends Application {
|
|||||||
public flags: Readonly<ApplicationFlagsBitField>;
|
public flags: Readonly<ApplicationFlagsBitField>;
|
||||||
public approximateGuildCount: number | null;
|
public approximateGuildCount: number | null;
|
||||||
public approximateUserInstallCount: number | null;
|
public approximateUserInstallCount: number | null;
|
||||||
|
public approximateUserAuthorizationCount: number | null;
|
||||||
public tags: string[];
|
public tags: string[];
|
||||||
public installParams: ClientApplicationInstallParams | null;
|
public installParams: ClientApplicationInstallParams | null;
|
||||||
public integrationTypesConfig: IntegrationTypesConfiguration | null;
|
public integrationTypesConfig: IntegrationTypesConfiguration | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user