Skip to content

Commit

Permalink
Add thread permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Jul 27, 2021
1 parent 865fbb0 commit 95f3726
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/net/dv8tion/jda/api/Permission.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public enum Permission
MESSAGE_EXT_EMOJI( 18, true, true, "Use External Emojis"),
USE_SLASH_COMMANDS( 31, true, true, "Use Slash Commands"),

MANAGE_THREADS( 34, true, true, "Manage Threads"),
USE_PUBLIC_THREADS( 35, true, true, "Use Public Threads"),
USE_PRIVATE_THREADS(36, true, true, "Use Private Threads"),

// Voice Permissions
VOICE_STREAM( 9, true, true, "Video"),
VOICE_CONNECT( 20, true, true, "Connect"),
Expand All @@ -66,10 +70,10 @@ public enum Permission
NICKNAME_CHANGE(26, true, false, "Change Nickname"),
NICKNAME_MANAGE(27, true, false, "Manage Nicknames"),

MANAGE_ROLES( 28, true, false, "Manage Roles"),
MANAGE_PERMISSIONS(28, false, true, "Manage Permissions"),
MANAGE_WEBHOOKS( 29, true, true, "Manage Webhooks"),
MANAGE_EMOTES( 30, true, false, "Manage Emojis"),
MANAGE_ROLES( 28, true, false, "Manage Roles"),
MANAGE_PERMISSIONS(28, false, true, "Manage Permissions"),
MANAGE_WEBHOOKS( 29, true, true, "Manage Webhooks"),
MANAGE_EMOTES( 30, true, false, "Manage Emojis"),

REQUEST_TO_SPEAK( 32, true, true, "Request to Speak"),

Expand Down Expand Up @@ -104,7 +108,8 @@ public enum Permission
public static final long ALL_TEXT_PERMISSIONS
= Permission.getRaw(MESSAGE_ADD_REACTION, MESSAGE_WRITE, MESSAGE_TTS,
MESSAGE_MANAGE, MESSAGE_EMBED_LINKS, MESSAGE_ATTACH_FILES,
MESSAGE_HISTORY, MESSAGE_MENTION_EVERYONE, USE_SLASH_COMMANDS);
MESSAGE_HISTORY, MESSAGE_MENTION_EVERYONE, USE_SLASH_COMMANDS,
MANAGE_THREADS, USE_PUBLIC_THREADS, USE_PRIVATE_THREADS);

/**
* All voice channel specific permissions which are only available in voice channel permission overrides
Expand Down

0 comments on commit 95f3726

Please sign in to comment.