2020-12-01 01:49:18 +00:00
|
|
|
// 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
|
|
|
|
|
2021-06-02 02:53:19 +00:00
|
|
|
import "github.com/diamondburned/arikawa/v3/gateway"
|
2020-04-20 01:21:10 +00:00
|
|
|
|
2021-07-02 09:42:00 +00:00
|
|
|
// Intents are the intents needed for voice to work properly.
|
|
|
|
const Intents = gateway.IntentGuilds | gateway.IntentGuildVoiceStates
|
|
|
|
|
2020-12-01 01:49:18 +00:00
|
|
|
// AddIntents adds the needed voice intents into gw. Bots should always call
|
|
|
|
// this before Open if voice is required.
|
2021-09-28 20:19:04 +00:00
|
|
|
func AddIntents(gw interface{ AddIntents(gateway.Intents) }) {
|
2021-07-02 09:42:00 +00:00
|
|
|
gw.AddIntents(Intents)
|
2020-05-13 20:43:00 +00:00
|
|
|
}
|