Add "Priority Speaker" permission as constant (#628)

* Bump to v0.17.0

* Add members from GuildMembersChunk to state (#454)

* Revert "Add members from GuildMembersChunk to state (#454)" (#455)

This reverts commit e4487b30d4.

* added clarification when initializing discordgo

from the code I ran on my system with the latest changes this seems to be the syntax for the authentication tokens. I'm guessing it was just never updated.
Let me know if this is incorrect. 
Thanks!

* travis: update go versions

* Add "Priority Speaker" permission constant

The permission "Priority Speaker" was missing as constant. Permission has been added as constant and to the "PermissionAllVoice" constant as well.
This commit is contained in:
JurrijnP 2019-02-05 21:41:52 +01:00 committed by Chris Rhodes
parent 4abf4d7de6
commit c5ae321187
2 changed files with 4 additions and 2 deletions

View file

@ -73,7 +73,7 @@ Construct a new Discord client which can be used to access the variety of
Discord API functions and to set callback functions for Discord events. Discord API functions and to set callback functions for Discord events.
```go ```go
discord, err := discordgo.New("authentication token") discord, err := discordgo.New("Bot " + "authentication token")
``` ```
See Documentation and Examples below for more detailed information. See Documentation and Examples below for more detailed information.

View file

@ -872,6 +872,7 @@ const (
PermissionVoiceDeafenMembers PermissionVoiceDeafenMembers
PermissionVoiceMoveMembers PermissionVoiceMoveMembers
PermissionVoiceUseVAD PermissionVoiceUseVAD
PermissionVoicePrioritySpeaker = 1 << (iota + 2)
) )
// Constants for general management. // Constants for general management.
@ -907,7 +908,8 @@ const (
PermissionVoiceMuteMembers | PermissionVoiceMuteMembers |
PermissionVoiceDeafenMembers | PermissionVoiceDeafenMembers |
PermissionVoiceMoveMembers | PermissionVoiceMoveMembers |
PermissionVoiceUseVAD PermissionVoiceUseVAD |
PermissionVoicePrioritySpeaker
PermissionAllChannel = PermissionAllText | PermissionAllChannel = PermissionAllText |
PermissionAllVoice | PermissionAllVoice |
PermissionCreateInstantInvite | PermissionCreateInstantInvite |