mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-31 07:50:09 +00:00
feat(OAuth2Scopes): add IdentifyPremium scope (#1648)
This commit is contained in:
7
deno/payloads/v10/oauth2.ts
generated
7
deno/payloads/v10/oauth2.ts
generated
@@ -30,6 +30,13 @@ export enum OAuth2Scopes {
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
|
||||
*/
|
||||
Identify = 'identify',
|
||||
/**
|
||||
* Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
|
||||
* {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
|
||||
*/
|
||||
IdentifyPremium = 'identify.premium',
|
||||
/**
|
||||
* Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
|
||||
* to return basic information about all of a user's guilds
|
||||
|
||||
1
deno/payloads/v10/user.ts
generated
1
deno/payloads/v10/user.ts
generated
@@ -74,6 +74,7 @@ export interface APIUser {
|
||||
/**
|
||||
* The type of Nitro subscription on a user's account
|
||||
*
|
||||
* @remarks This field will return `0` for applications that have not been approved for the {@link OAuth2Scopes.IdentifyPremium} scope.
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#user-object-premium-types}
|
||||
*/
|
||||
premium_type?: UserPremiumType;
|
||||
|
||||
7
deno/payloads/v9/oauth2.ts
generated
7
deno/payloads/v9/oauth2.ts
generated
@@ -30,6 +30,13 @@ export enum OAuth2Scopes {
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
|
||||
*/
|
||||
Identify = 'identify',
|
||||
/**
|
||||
* Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
|
||||
* {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
|
||||
*/
|
||||
IdentifyPremium = 'identify.premium',
|
||||
/**
|
||||
* Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
|
||||
* to return basic information about all of a user's guilds
|
||||
|
||||
1
deno/payloads/v9/user.ts
generated
1
deno/payloads/v9/user.ts
generated
@@ -74,6 +74,7 @@ export interface APIUser {
|
||||
/**
|
||||
* The type of Nitro subscription on a user's account
|
||||
*
|
||||
* @remarks This field will return `0` for applications that have not been approved for the {@link OAuth2Scopes.IdentifyPremium} scope.
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#user-object-premium-types}
|
||||
*/
|
||||
premium_type?: UserPremiumType;
|
||||
|
||||
@@ -30,6 +30,13 @@ export enum OAuth2Scopes {
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
|
||||
*/
|
||||
Identify = 'identify',
|
||||
/**
|
||||
* Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
|
||||
* {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
|
||||
*/
|
||||
IdentifyPremium = 'identify.premium',
|
||||
/**
|
||||
* Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
|
||||
* to return basic information about all of a user's guilds
|
||||
|
||||
@@ -74,6 +74,7 @@ export interface APIUser {
|
||||
/**
|
||||
* The type of Nitro subscription on a user's account
|
||||
*
|
||||
* @remarks This field will return `0` for applications that have not been approved for the {@link OAuth2Scopes.IdentifyPremium} scope.
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#user-object-premium-types}
|
||||
*/
|
||||
premium_type?: UserPremiumType;
|
||||
|
||||
@@ -30,6 +30,13 @@ export enum OAuth2Scopes {
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#get-current-user}
|
||||
*/
|
||||
Identify = 'identify',
|
||||
/**
|
||||
* Allows your app to read a user's Nitro subscription type as defined by `premium_type` on the
|
||||
* {@link https://docs.discord.com/developers/resources/user#user-object-user-structure | User object} - only available to approved partners
|
||||
*
|
||||
* @see {@link https://docs.discord.com/developers/resources/user#user-object-user-structure}
|
||||
*/
|
||||
IdentifyPremium = 'identify.premium',
|
||||
/**
|
||||
* Allows {@link https://discord.com/developers/docs/resources/user#get-current-user-guilds | `/users/@me/guilds`}
|
||||
* to return basic information about all of a user's guilds
|
||||
|
||||
@@ -74,6 +74,7 @@ export interface APIUser {
|
||||
/**
|
||||
* The type of Nitro subscription on a user's account
|
||||
*
|
||||
* @remarks This field will return `0` for applications that have not been approved for the {@link OAuth2Scopes.IdentifyPremium} scope.
|
||||
* @see {@link https://discord.com/developers/docs/resources/user#user-object-premium-types}
|
||||
*/
|
||||
premium_type?: UserPremiumType;
|
||||
|
||||
Reference in New Issue
Block a user