Skip to content

fix(report): defer slash command interaction to prevent timeout#382

Open
Matsukami7 wants to merge 1 commit into
mainfrom
fix/report-interaction-timeout
Open

fix(report): defer slash command interaction to prevent timeout#382
Matsukami7 wants to merge 1 commit into
mainfrom
fix/report-interaction-timeout

Conversation

@Matsukami7
Copy link
Copy Markdown
Contributor

Initial Checklist

  • Has @tigattack been added as a reviewer?
  • If applicable, have the relevant project(s), milestone(s), and label(s) been applied?
  • If applicable, have you added details of the cog to the readme as per README.md?

Details

Does this resolve an issue?
Resolves #

Changes

Features / Fixes

  • Adds feature/fix which does xyz.

Breaking Changes

  • Adds breaking change which causes <issue>.

Additional

Any further notes or comments you want to make.

Discord requires slash command interactions to be acknowledged within 3 seconds or it shows "This application did not respond." The /report and /emergency commands were doing several async operations (config reads,
  channel history fetch, log channel message sends) before responding to the interaction, regularly exceeding that window. The fix defers the interaction immediately at the start of do_report, which acknowledges Discord
  instantly and allows unlimited time to complete the work before sending the followup confirmation.
@Matsukami7 Matsukami7 requested a review from tigattack June 5, 2026 19:19
@Matsukami7 Matsukami7 added the cog-report Issues related to the report cog. label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cog-report Issues related to the report cog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants