github.com/diamondburned/arikawa/v2@v2.1.0/voice/voice.go (about) 1 // Package voice handles the Discord voice gateway and UDP connections. It does 2 // not handle book-keeping of those sessions. 3 // 4 // This package abstracts the subpackage voice/voicesession and voice/udp. 5 package voice 6 7 import "github.com/diamondburned/arikawa/v2/gateway" 8 9 // AddIntents adds the needed voice intents into gw. Bots should always call 10 // this before Open if voice is required. 11 func AddIntents(gw *gateway.Gateway) { 12 gw.AddIntents(gateway.IntentGuilds) 13 gw.AddIntents(gateway.IntentGuildVoiceStates) 14 }