1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-09 00:14:57 +00:00
arikawa/api
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
..
rate Webhook: Add rate limiter and WithContext 2021-03-05 20:01:33 -08:00
webhook Webhook: Add rate limiter and WithContext 2021-03-05 20:01:33 -08:00
api.go Webhook: Add rate limiter and WithContext 2021-03-05 20:01:33 -08:00
api_test.go API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
application.go Discord: Add basic support for slash commands 2021-01-27 10:44:14 -08:00
channel.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
emoji.go Discord: Added typed APIEmoji 2020-12-16 12:24:23 -08:00
guild.go API: Separated min function 2020-12-26 16:08:41 -08:00
image.go replace usage of discordapp.com with discord.com in docs 2020-11-03 10:14:53 -08:00
integration_test.go CI: Add perseverance test for Gateway 2020-12-31 23:48:29 -08:00
interaction.go Discord: typed snowflake for Interaction 2021-02-17 17:41:19 -08:00
invite.go API: Added JoinInvite 2020-12-31 00:16:43 -08:00
login.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
member.go API: Separated min function 2020-12-26 16:08:41 -08:00
message.go Gateway: Sharding callback, proper closing (#190) 2021-04-07 11:38:26 -07:00
message_reaction.go API: Separated min function 2020-12-26 16:08:41 -08:00
role.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
send.go API: Add File.AttachmentURI for convenience 2021-02-24 01:59:33 -08:00
send_test.go API: Move ExecuteWebhookData, add package sendpart for uploads 2020-12-16 13:11:11 -08:00
user.go API: Add get Note endpoint 2020-12-26 16:13:10 -08:00
webhook.go *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00