Skip to content

Commit

Permalink
feat(APIRole): role flags (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 committed Jul 16, 2023
1 parent 82d7024 commit 488b5ad
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deno/payloads/v10/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export interface APIRole {
* The tags this role has
*/
tags?: APIRoleTags;
/**
* Role flags
*/
flags: RoleFlags;
}

/**
Expand Down Expand Up @@ -85,3 +89,10 @@ export interface APIRoleTags {
*/
guild_connections?: null;
}

export enum RoleFlags {
/**
* Role can be selected by members in an onboarding prompt
*/
InPrompt = 1 << 0,
}
11 changes: 11 additions & 0 deletions deno/payloads/v9/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export interface APIRole {
* The tags this role has
*/
tags?: APIRoleTags;
/**
* Role flags
*/
flags: RoleFlags;
}

/**
Expand Down Expand Up @@ -85,3 +89,10 @@ export interface APIRoleTags {
*/
guild_connections?: null;
}

export enum RoleFlags {
/**
* Role can be selected by members in an onboarding prompt
*/
InPrompt = 1 << 0,
}
11 changes: 11 additions & 0 deletions payloads/v10/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export interface APIRole {
* The tags this role has
*/
tags?: APIRoleTags;
/**
* Role flags
*/
flags: RoleFlags;
}

/**
Expand Down Expand Up @@ -85,3 +89,10 @@ export interface APIRoleTags {
*/
guild_connections?: null;
}

export enum RoleFlags {
/**
* Role can be selected by members in an onboarding prompt
*/
InPrompt = 1 << 0,
}
11 changes: 11 additions & 0 deletions payloads/v9/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export interface APIRole {
* The tags this role has
*/
tags?: APIRoleTags;
/**
* Role flags
*/
flags: RoleFlags;
}

/**
Expand Down Expand Up @@ -85,3 +89,10 @@ export interface APIRoleTags {
*/
guild_connections?: null;
}

export enum RoleFlags {
/**
* Role can be selected by members in an onboarding prompt
*/
InPrompt = 1 << 0,
}

1 comment on commit 488b5ad

@vercel
Copy link

@vercel vercel bot commented on 488b5ad Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.