Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Replaying

Gabriel edited this page Jul 21, 2022 · 1 revision

To enable/disable event replaying, in the client's configuration scope you can change the enableEventReplaying option (enabled by default).

val client = DeckClient("INSERT_YOUR_TOKEN_HERE") {
    enableEventReplaying = false
}

If enabled, whenever the bot unexpectedly disconnects from the gateway, it'll try to find a "checkpoint" and replay all missed events from there. When it is finished replaying these events, deck will trigger a ResumeEvent.

Clone this wiki locally