From 598cbfb958a67d5ba61696ba877ea0bae4c4be55 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Sat, 10 Apr 2021 19:46:42 +0300 Subject: [PATCH] feat(APIApplication): document `terms_of_service` and `privacy_policy` BREAKING CHANGE: This renames the `GatewayPresenceLimit` flag to `GatewayPresenceLimited`, for consistency with `GatewayGuildMembersLimited` and the documented name. Reference: https://github.com/discord/discord-api-docs/commit/39b254bed1cc396c475e508a3f2bf328815605c9 --- deno/payloads/v8/oauth2.ts | 10 +++++++++- payloads/v8/oauth2.ts | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/deno/payloads/v8/oauth2.ts b/deno/payloads/v8/oauth2.ts index 6862e6aae..8ccc086d4 100644 --- a/deno/payloads/v8/oauth2.ts +++ b/deno/payloads/v8/oauth2.ts @@ -38,6 +38,14 @@ export interface APIApplication { * When `true` the app's bot will only join upon completion of the full oauth2 code grant flow */ bot_require_code_grant: boolean; + /** + * The url of the app's terms of service + */ + terms_of_service_url?: string; + /** + * The url of the app's privacy policy + */ + privacy_policy_url?: string; /** * Partial user object containing info on the owner of the application * @@ -88,7 +96,7 @@ export enum ApplicationFlags { GroupDMCreate = 1 << 4, RPCHasConnected = 1 << 11, GatewayPresence = 1 << 12, - GatewayPresenceLimit = 1 << 13, + GatewayPresenceLimited = 1 << 13, GatewayGuildMembers = 1 << 14, GatewayGuildMembersLimited = 1 << 15, VerificationPendingGuildLimit = 1 << 16, diff --git a/payloads/v8/oauth2.ts b/payloads/v8/oauth2.ts index 6dcdeacd0..f787aef58 100644 --- a/payloads/v8/oauth2.ts +++ b/payloads/v8/oauth2.ts @@ -38,6 +38,14 @@ export interface APIApplication { * When `true` the app's bot will only join upon completion of the full oauth2 code grant flow */ bot_require_code_grant: boolean; + /** + * The url of the app's terms of service + */ + terms_of_service_url?: string; + /** + * The url of the app's privacy policy + */ + privacy_policy_url?: string; /** * Partial user object containing info on the owner of the application * @@ -88,7 +96,7 @@ export const enum ApplicationFlags { GroupDMCreate = 1 << 4, RPCHasConnected = 1 << 11, GatewayPresence = 1 << 12, - GatewayPresenceLimit = 1 << 13, + GatewayPresenceLimited = 1 << 13, GatewayGuildMembers = 1 << 14, GatewayGuildMembersLimited = 1 << 15, VerificationPendingGuildLimit = 1 << 16,