let bot's auto reconnect

This commit is contained in:
Seraphim Strub 2023-06-23 08:28:33 +00:00
parent 13c620625c
commit 40b3be7a11
4 changed files with 4 additions and 0 deletions

View file

@ -45,6 +45,7 @@ func main() {
client, err := disgo.New(config.Token, client, err := disgo.New(config.Token,
bot.WithGatewayConfigOpts( bot.WithGatewayConfigOpts(
gateway.WithIntents(gateway.IntentsNone), gateway.WithIntents(gateway.IntentsNone),
gateway.WithAutoReconnect(true),
), ),
bot.WithCacheConfigOpts( bot.WithCacheConfigOpts(
cache.WithCaches( cache.WithCaches(

View file

@ -49,6 +49,7 @@ func main() {
client, err := disgo.New(token, client, err := disgo.New(token,
bot.WithGatewayConfigOpts( bot.WithGatewayConfigOpts(
gateway.WithIntents(gateway.IntentsNone), gateway.WithIntents(gateway.IntentsNone),
gateway.WithAutoReconnect(true),
), ),
bot.WithCacheConfigOpts( bot.WithCacheConfigOpts(
cache.WithCaches( cache.WithCaches(

View file

@ -50,6 +50,7 @@ func main() {
client, err := disgo.New(config.Token, client, err := disgo.New(config.Token,
bot.WithGatewayConfigOpts( bot.WithGatewayConfigOpts(
gateway.WithIntents(gateway.IntentGuildVoiceStates), gateway.WithIntents(gateway.IntentGuildVoiceStates),
gateway.WithAutoReconnect(true),
), ),
bot.WithCacheConfigOpts( bot.WithCacheConfigOpts(
cache.WithCaches( cache.WithCaches(

View file

@ -44,6 +44,7 @@ func main() {
client, err := disgo.New(config.Token, client, err := disgo.New(config.Token,
bot.WithGatewayConfigOpts( bot.WithGatewayConfigOpts(
gateway.WithIntents(gateway.IntentGuildMembers), gateway.WithIntents(gateway.IntentGuildMembers),
gateway.WithAutoReconnect(true),
), ),
bot.WithCacheConfigOpts( bot.WithCacheConfigOpts(
cache.WithCaches( cache.WithCaches(