1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-03 12:23:02 +00:00
arikawa/gateway
Maximilian von Lindern ebc74e3168
Gateway: Sharding callback, proper closing (#190)
* Gateway: Fix gateway reconnect

This commit uses the correct timeout, Gateway.ReconnectTimeout, when reconnecting. Furthermore, it adds a delay between consecutive, failed reconnects.

* Gateway: Stop pacemaker when calling Gateway.CloseGracefully

* API: remove unnecessary leading/trailing whitespaces

* Gateway: Add Gateway.OnScalingRequired callback

* Gateway: Make all user initiated user closures graceful and ensure that closures are respected during reconnects

* Gateway: Fix typo

* Gateway: Add Gateway.ReconnectAttempts and deprecate .ReconnectTimeout

* Gateway: Add Gateway.Pause and reexport .Reconnect and .ReconnectCtx

* Gateway: Improve the Gateway.OnShardingRequired docs

* Wsutil: Code cleanup
2021-04-07 11:38:26 -07:00
..
commands.go Gateway: Better Activities type for UpdateStatusData 2021-02-07 17:03:12 -08:00
events.go Discord: typed snowflake for Interaction 2021-02-17 17:41:19 -08:00
events_map.go Discord: Add basic support for slash commands 2021-01-27 10:44:14 -08:00
gateway.go Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00
identify.go Gateway: Made Shard field empty for default 2020-12-30 23:43:08 -08:00
integration_test.go Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00
intents.go replace usage of discordapp.com with discord.com in docs 2020-11-03 10:14:53 -08:00
intents_map.go Gateway: Added an Event to Intents map for convenience 2020-10-28 19:44:04 -07:00
op.go Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00
perseverance_test.go CI: Add perseverance test for Gateway 2020-12-31 23:48:29 -08:00
ready.go Gateway: Rename MessageNotifications to Notifications for consistency 2020-12-19 19:22:35 -08:00