1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 00:14:57 +00:00
arikawa/voice/voice.go

15 lines
517 B
Go
Raw Normal View History

// Package voice handles the Discord voice gateway and UDP connections. It does
// not handle book-keeping of those sessions.
2020-04-25 03:29:14 +00:00
//
// This package abstracts the subpackage voice/voicesession and voice/udp.
2020-04-20 01:21:10 +00:00
package voice
import "github.com/diamondburned/arikawa/v2/gateway"
2020-04-20 01:21:10 +00:00
// AddIntents adds the needed voice intents into gw. Bots should always call
// this before Open if voice is required.
func AddIntents(gw *gateway.Gateway) {
gw.AddIntents(gateway.IntentGuilds)
gw.AddIntents(gateway.IntentGuildVoiceStates)
}