Skip to content

Commit

Permalink
feat(APIApplication): document terms_of_service and privacy_policy
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This renames the `GatewayPresenceLimit` flag to
`GatewayPresenceLimited`, for consistency with `GatewayGuildMembersLimited`
and the documented name.

Reference: discord/discord-api-docs@39b254b
  • Loading branch information
vladfrangu committed Apr 10, 2021
1 parent e8203a1 commit 598cbfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion deno/payloads/v8/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 9 additions & 1 deletion payloads/v8/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 598cbfb

Please sign in to comment.