APIWebhookEventPayload
Type Alias: APIWebhookEventPayload<T>
Section titled “Type Alias: APIWebhookEventPayload<T>”APIWebhookEventPayload<
T> =Extract<APIWebhookEventBody, {type:T; }>
Defined in: types/webhook.ts:8
The raw Discord webhook event body, narrowed to a specific event type T.
Type Parameters
Section titled “Type Parameters”T extends ApplicationWebhookEventType = ApplicationWebhookEventType
