Library referenceTypes
WebhookEvent
type WebhookEvent = Omit<ApiEvent, "type" | "data"> & {
data: | MapEventData
| {
nonce: string;
}
| Record<string, unknown>;
type: EventType | "webhook.test" | "webhook.verify";
};one webhook delivery; test and verify sends carry id 0, the real id is in the Krunker-Event-Id header
Type Declaration
| Name | Type |
|---|---|
data | | MapEventData | { nonce: string; } | Record<string, unknown> |
type | EventType | "webhook.test" | "webhook.verify" |