add additional needed intent

This commit is contained in:
Seraphim Strub 2024-05-21 20:28:34 +02:00
parent 372f4ceeb5
commit fc1259f696
2 changed files with 4 additions and 19 deletions

View file

@ -33,7 +33,10 @@ func main() {
// intents:
client, err := disgo.New(config.Token,
bot.WithGatewayConfigOpts(
gateway.WithIntents(gateway.IntentGuildVoiceStates),
gateway.WithIntents(
gateway.IntentGuildVoiceStates,
gateway.IntentGuilds, // needed for current VoiceStates to be loaded on start
),
gateway.WithAutoReconnect(true),
),
bot.WithCacheConfigOpts(