-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GithubCommand: Defer all initial replies
We need to respond to Discord's chat interaction request within 3 seconds. If we don't do so, we sometimes end up in a perpetual broken state where chat commands simply stop working. This changes GithubCommand to always send out an ephemeral initial deferred reply, which then either gets deleted and replaced with the actual reply or edited when something goes wrong. We need to delete the initial deferred reply, since the ephemeral status of a message cannot be changed with `.editReply()`.
- Loading branch information
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters