Defined in structs/Webhook.ts:106
Parameters
fn: ( payload: WebhookPayload , req?: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res?: Response < any , Record < string , any > > , next?: NextFunction ) => void | Promise < void >
( payload: WebhookPayload , req?: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res?: Response < any , Record < string , any > > , next?: NextFunction ) : void | Promise < void >
Parameters
Optional req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > >
Optional res: Response < any , Record < string , any > >
Optional next: NextFunction
Returns void | Promise < void >
Returns ( req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res: Response < any , Record < string , any > > , next: NextFunction ) => Promise < void >
An express request handler
( req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res: Response < any , Record < string , any > > , next: NextFunction ) : Promise < void >
Parameters
req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > >
res: Response < any , Record < string , any > >
next: NextFunction
Returns Promise < void >
Top.gg Webhook
Webhook Data Schema
Webhook Documentation