add additional needed intent
This commit is contained in:
parent
372f4ceeb5
commit
fc1259f696
2 changed files with 4 additions and 19 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue