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).Documentation Index
Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
Use this file to discover all available pages before exploring further.
Webhook map
interactionsapplicationCommand(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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
application_id | string | Yes | — |
token | string | Yes | — |
version | 1 | Yes | — |
guild_id | string | No | — |
channel_id | string | No | — |
member | object | No | — |
user | object | No | — |
locale | string | No | — |
guild_locale | string | No | — |
app_permissions | string | No | — |
type | 2 | Yes | — |
data | object | Yes | — |
member full type
member full type
user full type
user full type
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Message Component
interactions.messageComponent
A user clicked a button or selected a menu option
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
application_id | string | Yes | — |
token | string | Yes | — |
version | 1 | Yes | — |
guild_id | string | No | — |
channel_id | string | No | — |
member | object | No | — |
user | object | No | — |
locale | string | No | — |
guild_locale | string | No | — |
app_permissions | string | No | — |
type | 3 | Yes | — |
data | object | Yes | — |
message | object | Yes | — |
member full type
member full type
user full type
user full type
data full type
data full type
message full type
message full type
Response data full type
Response data full type
webhookHooks example
Modal Submit
interactions.modalSubmit
A user submitted a modal dialog
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
application_id | string | Yes | — |
token | string | Yes | — |
version | 1 | Yes | — |
guild_id | string | No | — |
channel_id | string | No | — |
member | object | No | — |
user | object | No | — |
locale | string | No | — |
guild_locale | string | No | — |
app_permissions | string | No | — |
type | 5 | Yes | — |
data | object | Yes | — |
member full type
member full type
user full type
user full type
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Ping
interactions.ping
Discord sends a PING to verify the endpoint is live
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
application_id | string | Yes | — |
token | string | Yes | — |
version | 1 | Yes | — |
guild_id | string | No | — |
channel_id | string | No | — |
member | object | No | — |
user | object | No | — |
locale | string | No | — |
guild_locale | string | No | — |
app_permissions | string | No | — |
type | 1 | Yes | — |
member full type
member full type
user full type
user full type
Response data full type
Response data full type
webhookHooks example