Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GithubCommand: Defer all initial replies #32

Merged

Conversation

gmta
Copy link
Contributor

@gmta gmta commented Dec 18, 2024

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().

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()`.
@gmta gmta merged commit 6e3af34 into LadybirdBrowser:master Dec 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant