Use MakeIntent in voice_recieve example (#1182)
This commit is contained in:
parent
d7b4a482b5
commit
414e505c56
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ func main() {
|
|||
defer s.Close()
|
||||
|
||||
// We only really care about receiving voice state updates.
|
||||
s.Identify.Intents = discordgo.IntentsGuildVoiceStates
|
||||
s.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsGuildVoiceStates)
|
||||
|
||||
err = s.Open()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue