- Symptom
- The application did not respondDiscordAPIError[10062]: Unknown interaction404 Unknown interaction from discord.py interaction.response.send_message
- Cause
- The first response to an interaction must reach Discord within 3 seconds or the interaction token stops working. Any database or HTTP call before replying can push it past the window.
- Fix
- Defer as the very first awaited call, do the work, then edit the reply. The token stays valid for 15 minutes for edits and followups.
- Apply
await interaction.deferReply(); const result = await slowWork(); await interaction.editReply(result);- Affected
- Discord interactions, all libraries, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders