let bot's auto reconnect
This commit is contained in:
parent
13c620625c
commit
40b3be7a11
4 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,7 @@ func main() {
|
|||
client, err := disgo.New(config.Token,
|
||||
bot.WithGatewayConfigOpts(
|
||||
gateway.WithIntents(gateway.IntentsNone),
|
||||
gateway.WithAutoReconnect(true),
|
||||
),
|
||||
bot.WithCacheConfigOpts(
|
||||
cache.WithCaches(
|
||||
|
|
|
@ -49,6 +49,7 @@ func main() {
|
|||
client, err := disgo.New(token,
|
||||
bot.WithGatewayConfigOpts(
|
||||
gateway.WithIntents(gateway.IntentsNone),
|
||||
gateway.WithAutoReconnect(true),
|
||||
),
|
||||
bot.WithCacheConfigOpts(
|
||||
cache.WithCaches(
|
||||
|
|
|
@ -50,6 +50,7 @@ func main() {
|
|||
client, err := disgo.New(config.Token,
|
||||
bot.WithGatewayConfigOpts(
|
||||
gateway.WithIntents(gateway.IntentGuildVoiceStates),
|
||||
gateway.WithAutoReconnect(true),
|
||||
),
|
||||
bot.WithCacheConfigOpts(
|
||||
cache.WithCaches(
|
||||
|
|
|
@ -44,6 +44,7 @@ func main() {
|
|||
client, err := disgo.New(config.Token,
|
||||
bot.WithGatewayConfigOpts(
|
||||
gateway.WithIntents(gateway.IntentGuildMembers),
|
||||
gateway.WithAutoReconnect(true),
|
||||
),
|
||||
bot.WithCacheConfigOpts(
|
||||
cache.WithCaches(
|
||||
|
|
Loading…
Reference in a new issue