Use MakeIntent in voice_recieve example (#1182)

This commit is contained in:
wass88 2022-05-24 03:23:09 +09:00 committed by GitHub
parent d7b4a482b5
commit 414e505c56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ func main() {
defer s.Close() defer s.Close()
// We only really care about receiving voice state updates. // We only really care about receiving voice state updates.
s.Identify.Intents = discordgo.IntentsGuildVoiceStates s.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsGuildVoiceStates)
err = s.Open() err = s.Open()
if err != nil { if err != nil {