Skip to content

Conversation

@vcarl
Copy link
Member

@vcarl vcarl commented Jan 27, 2026

Defer replies immediately to avoid Discord's 3-second interaction timeout. Creating user threads can involve multiple API calls that exceed this limit, causing "Unknown interaction" errors when no thread exists yet.

Defer replies immediately to avoid Discord's 3-second interaction timeout.
Creating user threads can involve multiple API calls that exceed this limit,
causing "Unknown interaction" errors when no thread exists yet.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Jan 27, 2026

Preview environment removed

The preview for this PR has been cleaned up.

@what-the-diff
Copy link

what-the-diff bot commented Jan 27, 2026

PR Summary

  • Inclusion of MessageFlags
    The MessageFlags import has been added to both report.ts and track.ts files. This would be used for better managing replies during interactions.

  • Improving Reply Mechanism in report.ts
    To prevent any timeout issues during message reporting, we have enhanced the reply mechanism in this command handler. The reply is immediately deferred after a command arrives.

  • Enhancement to Response Method in report.ts
    The way responses are sent after reporting has also been updated, shifting from interaction.reply to interaction.editReply. Additionally, the ephemeral flag has been eliminated.

  • Improving Reply Mechanism in track.ts
    Just like in report.ts, we've implemented an immediate reply deferral in the track.ts command handler as well. This improvement allows the system to handle any potential delays efficiently.

  • Enhancement to Feedback Mechanism in track.ts
    The feedback mechanism for user interaction related to message tracking has been improved. Now it has transitioned from interaction.reply to interaction.editReply, and the ephemeral flag has been removed in this case too.

@vcarl vcarl merged commit c614df9 into main Jan 27, 2026
5 checks passed
@vcarl vcarl deleted the vc-fix branch January 27, 2026 02:42
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.

2 participants