From c5ae3211870ad46aabd8c157c2bcf44929c40f3e Mon Sep 17 00:00:00 2001 From: JurrijnP Date: Tue, 5 Feb 2019 21:41:52 +0100 Subject: [PATCH] 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 e4487b30d4d846b1fdc08fd3982bd5b9965a8cc9. * 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. --- README.md | 2 +- structs.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d526d35..cb5a665 100644 --- a/README.md +++ b/README.md @@ -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. ```go -discord, err := discordgo.New("authentication token") +discord, err := discordgo.New("Bot " + "authentication token") ``` See Documentation and Examples below for more detailed information. diff --git a/structs.go b/structs.go index 4465ec5..c643bd5 100644 --- a/structs.go +++ b/structs.go @@ -872,6 +872,7 @@ const ( PermissionVoiceDeafenMembers PermissionVoiceMoveMembers PermissionVoiceUseVAD + PermissionVoicePrioritySpeaker = 1 << (iota + 2) ) // Constants for general management. @@ -907,7 +908,8 @@ const ( PermissionVoiceMuteMembers | PermissionVoiceDeafenMembers | PermissionVoiceMoveMembers | - PermissionVoiceUseVAD + PermissionVoiceUseVAD | + PermissionVoicePrioritySpeaker PermissionAllChannel = PermissionAllText | PermissionAllVoice | PermissionCreateInstantInvite |