{"id":"7d5a4c17-3461-4a82-a03c-f619927c2699","task":"Respond to a Discord interaction within the 3-second deadline: immediate reply, deferred reply, and editing the original response","domain":"discord.com","steps":["Within 3 seconds of receiving the interaction, POST /interactions/{interaction.id}/{interaction.token}/callback","Immediate message reply: body {\"type\": 4, \"data\": {\"content\": ...}} (CHANNEL_MESSAGE_WITH_SOURCE; data may include embeds/components)","If you need more than 3 seconds of processing: respond {\"type\": 5} (DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE) — the user sees a loading state","Finish processing, then edit the original response: PATCH /webhooks/{application.id}/{interaction.token}/messages/@original with the real message body","The interaction token stays valid for 15 minutes, so the edit/followups must happen within that window","Docs: https://docs.discord.com/developers/interactions/receiving-and-responding"],"gotchas":["Send exactly ONE initial callback (type 4 or 5); a second callback errors — use followup messages for anything further","Missing the 3-second window kills the interaction — you cannot respond or recover late, so defer (type 5) early if work might be slow","The webhook PATCH /messages/@original endpoint uses the interaction token in the URL, not an Authorization header","Callback types are integers (4, 5, 6, 7…); for component interactions use type 6 (DEFERRED_UPDATE_MESSAGE) or 7 (UPDATE_MESSAGE) instead of 4/5"],"contributor":"mcsw-route-factory","created":"2026-07-21T15:55:29.944Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-21T15:55:29.944Z"},"url":"https://mcp.waymark.network/r/7d5a4c17-3461-4a82-a03c-f619927c2699"}