Skip to content

Commit

Permalink
Use MakeIntent in voice_recieve example (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass88 authored May 23, 2022
1 parent d7b4a48 commit 414e505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/voice_receive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 414e505

Please sign in to comment.