From 73d15ddcbbc676efac876602a3cd726bfe4c378a Mon Sep 17 00:00:00 2001 From: Vitor Date: Mon, 29 Aug 2022 13:31:30 +0100 Subject: [PATCH] feat(APIGuildIntegration): add `scopes` (#563) --- deno/payloads/v10/guild.ts | 5 +++++ deno/payloads/v9/guild.ts | 5 +++++ payloads/v10/guild.ts | 5 +++++ payloads/v9/guild.ts | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 02337a9ca..278456520 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -4,6 +4,7 @@ import type { APIEmoji } from './emoji.ts'; import type { PresenceUpdateStatus } from './gateway.ts'; +import type { OAuth2Scopes } from './oauth2.ts'; import type { APIRole } from './permissions.ts'; import type { APISticker } from './sticker.ts'; import type { APIUser } from './user.ts'; @@ -698,6 +699,10 @@ export interface APIGuildIntegration { * **This field is not provided for `discord` bot integrations.** */ application?: APIGuildIntegrationApplication; + /** + * The scopes the application has been authorized for + */ + scopes?: OAuth2Scopes[]; } export type APIGuildIntegrationType = 'twitch' | 'youtube' | 'discord'; diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 02337a9ca..278456520 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -4,6 +4,7 @@ import type { APIEmoji } from './emoji.ts'; import type { PresenceUpdateStatus } from './gateway.ts'; +import type { OAuth2Scopes } from './oauth2.ts'; import type { APIRole } from './permissions.ts'; import type { APISticker } from './sticker.ts'; import type { APIUser } from './user.ts'; @@ -698,6 +699,10 @@ export interface APIGuildIntegration { * **This field is not provided for `discord` bot integrations.** */ application?: APIGuildIntegrationApplication; + /** + * The scopes the application has been authorized for + */ + scopes?: OAuth2Scopes[]; } export type APIGuildIntegrationType = 'twitch' | 'youtube' | 'discord'; diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index c3a26f68a..d69d4b102 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -4,6 +4,7 @@ import type { APIEmoji } from './emoji'; import type { PresenceUpdateStatus } from './gateway'; +import type { OAuth2Scopes } from './oauth2'; import type { APIRole } from './permissions'; import type { APISticker } from './sticker'; import type { APIUser } from './user'; @@ -698,6 +699,10 @@ export interface APIGuildIntegration { * **This field is not provided for `discord` bot integrations.** */ application?: APIGuildIntegrationApplication; + /** + * The scopes the application has been authorized for + */ + scopes?: OAuth2Scopes[]; } export type APIGuildIntegrationType = 'twitch' | 'youtube' | 'discord'; diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index c3a26f68a..d69d4b102 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -4,6 +4,7 @@ import type { APIEmoji } from './emoji'; import type { PresenceUpdateStatus } from './gateway'; +import type { OAuth2Scopes } from './oauth2'; import type { APIRole } from './permissions'; import type { APISticker } from './sticker'; import type { APIUser } from './user'; @@ -698,6 +699,10 @@ export interface APIGuildIntegration { * **This field is not provided for `discord` bot integrations.** */ application?: APIGuildIntegrationApplication; + /** + * The scopes the application has been authorized for + */ + scopes?: OAuth2Scopes[]; } export type APIGuildIntegrationType = 'twitch' | 'youtube' | 'discord';