Skip to content

Commit

Permalink
feat(ApplicationFlags): add embedded application flags (#277)
Browse files Browse the repository at this point in the history
While Discord considers it not relevant, invites for in-app applications use at least one of these flags. Reference PR: discord/discord-api-docs#4248
  • Loading branch information
almeidx committed Dec 25, 2021
1 parent cd580fa commit 9f4f59c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deno/payloads/v8/application.ts
Expand Up @@ -97,6 +97,7 @@ export interface APIApplication {
* https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
export enum ApplicationFlags {
EmbeddedReleased = 1 << 1,
ManagedEmoji = 1 << 2,
GroupDMCreate = 1 << 4,
RPCHasConnected = 1 << 11,
Expand All @@ -108,4 +109,5 @@ export enum ApplicationFlags {
Embedded = 1 << 17,
GatewayMessageContent = 1 << 18,
GatewayMessageContentLimited = 1 << 19,
EmbeddedFirstParty = 1 << 20,
}
2 changes: 2 additions & 0 deletions deno/payloads/v9/application.ts
Expand Up @@ -97,6 +97,7 @@ export interface APIApplication {
* https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
export enum ApplicationFlags {
EmbeddedReleased = 1 << 1,
ManagedEmoji = 1 << 2,
GroupDMCreate = 1 << 4,
RPCHasConnected = 1 << 11,
Expand All @@ -108,4 +109,5 @@ export enum ApplicationFlags {
Embedded = 1 << 17,
GatewayMessageContent = 1 << 18,
GatewayMessageContentLimited = 1 << 19,
EmbeddedFirstParty = 1 << 20,
}
2 changes: 2 additions & 0 deletions payloads/v8/application.ts
Expand Up @@ -97,6 +97,7 @@ export interface APIApplication {
* https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
export const enum ApplicationFlags {
EmbeddedReleased = 1 << 1,
ManagedEmoji = 1 << 2,
GroupDMCreate = 1 << 4,
RPCHasConnected = 1 << 11,
Expand All @@ -108,4 +109,5 @@ export const enum ApplicationFlags {
Embedded = 1 << 17,
GatewayMessageContent = 1 << 18,
GatewayMessageContentLimited = 1 << 19,
EmbeddedFirstParty = 1 << 20,
}
2 changes: 2 additions & 0 deletions payloads/v9/application.ts
Expand Up @@ -97,6 +97,7 @@ export interface APIApplication {
* https://discord.com/developers/docs/resources/application#application-object-application-flags
*/
export const enum ApplicationFlags {
EmbeddedReleased = 1 << 1,
ManagedEmoji = 1 << 2,
GroupDMCreate = 1 << 4,
RPCHasConnected = 1 << 11,
Expand All @@ -108,4 +109,5 @@ export const enum ApplicationFlags {
Embedded = 1 << 17,
GatewayMessageContent = 1 << 18,
GatewayMessageContentLimited = 1 << 19,
EmbeddedFirstParty = 1 << 20,
}

0 comments on commit 9f4f59c

Please sign in to comment.