Skip to content

Commit

Permalink
Add Permission.PRIORITY_SPEAKER
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Aug 2, 2018
1 parent 874e892 commit bf6cf25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/dv8tion/jda/core/Permission.java
Expand Up @@ -33,6 +33,7 @@ public enum Permission
MANAGE_SERVER(5, true, false, "Manage Server"),
MESSAGE_ADD_REACTION(6, true, true, "Add Reactions"),
VIEW_AUDIT_LOGS(7, true, false, "View Audit Logs"),
PRIORITY_SPEAKER(8, true, true, "Priority Speaker"),

// Applicable to all channel types
VIEW_CHANNEL(10, true, true, "Read Text Channels & See Voice Channels"),
Expand Down Expand Up @@ -187,7 +188,7 @@ public boolean isText()
*/
public boolean isVoice()
{
return offset == 10 || offset > 19 && offset < 26;
return offset == 10 || offset == 8 || offset > 19 && offset < 26;
}

/**
Expand Down

0 comments on commit bf6cf25

Please sign in to comment.