From 414e505c5647165a88db0c3c5af13c0a96dca375 Mon Sep 17 00:00:00 2001 From: wass88 Date: Tue, 24 May 2022 03:23:09 +0900 Subject: [PATCH] Use MakeIntent in voice_recieve example (#1182) --- examples/voice_receive/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/voice_receive/main.go b/examples/voice_receive/main.go index c480b9e..e5a9252 100644 --- a/examples/voice_receive/main.go +++ b/examples/voice_receive/main.go @@ -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 {