Skip to content

Commit

Permalink
feat(PermissionFlagsBits): split up expressions and events perms (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Nov 16, 2023
1 parent 1d8399d commit ca05ee5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions deno/payloads/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const PermissionFlagsBits = {
*/
ManageEmojisAndStickers: 1n << 30n,
/**
* Allows management and editing of emojis, stickers, and soundboard sounds
* Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
*/
ManageGuildExpressions: 1n << 30n,
/**
Expand All @@ -198,7 +198,7 @@ export const PermissionFlagsBits = {
*/
RequestToSpeak: 1n << 32n,
/**
* Allows for creating, editing, and deleting scheduled events
* Allows for editing and deleting scheduled events created by all users
*
* Applies to channel types: Voice, Stage
*/
Expand Down Expand Up @@ -254,6 +254,16 @@ export const PermissionFlagsBits = {
* Applies to channel types: Voice
*/
UseSoundboard: 1n << 42n,
/**
* Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user
*/
CreateGuildExpressions: 1n << 43n,
/**
* Allows for creating scheduled events, and editing and deleting those created by the current user
*
* Applies to channel types: Voice, Stage
*/
CreateEvents: 1n << 44n,
/**
* Allows the usage of custom soundboard sounds from other servers
*
Expand Down
14 changes: 12 additions & 2 deletions payloads/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const PermissionFlagsBits = {
*/
ManageEmojisAndStickers: 1n << 30n,
/**
* Allows management and editing of emojis, stickers, and soundboard sounds
* Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
*/
ManageGuildExpressions: 1n << 30n,
/**
Expand All @@ -198,7 +198,7 @@ export const PermissionFlagsBits = {
*/
RequestToSpeak: 1n << 32n,
/**
* Allows for creating, editing, and deleting scheduled events
* Allows for editing and deleting scheduled events created by all users
*
* Applies to channel types: Voice, Stage
*/
Expand Down Expand Up @@ -254,6 +254,16 @@ export const PermissionFlagsBits = {
* Applies to channel types: Voice
*/
UseSoundboard: 1n << 42n,
/**
* Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user
*/
CreateGuildExpressions: 1n << 43n,
/**
* Allows for creating scheduled events, and editing and deleting those created by the current user
*
* Applies to channel types: Voice, Stage
*/
CreateEvents: 1n << 44n,
/**
* Allows the usage of custom soundboard sounds from other servers
*
Expand Down

1 comment on commit ca05ee5

@vercel
Copy link

@vercel vercel bot commented on ca05ee5 Nov 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.