Skip to main content
The Discord plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • interactions
    • applicationCommand (interactions.applicationCommand)
    • messageComponent (interactions.messageComponent)
    • modalSubmit (interactions.modalSubmit)
    • ping (interactions.ping)

HTTP handler setup

app/api/webhook/route.ts

Events

Interactions

Application Command

interactions.applicationCommand A user invoked a slash command or context-menu action Payload
webhookHooks example

Message Component

interactions.messageComponent A user clicked a button or selected a menu option Payload
webhookHooks example

interactions.modalSubmit A user submitted a modal dialog Payload
webhookHooks example

Ping

interactions.ping Discord sends a PING to verify the endpoint is live Payload
webhookHooks example