Preparing search index...
The search index is not available @top-gg/sdk
Constructors
constructor
new Webhook( authorization?: string , options?: WebhookOptions ) : Webhook
Parameters
Optional
authorization: string
Methods
listener
listener( fn: ( ( payload: WebhookPayload , req?: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res?: Response < any , Record < string , any > > , next?: NextFunction ) => void | Promise < void > ) ) : ( ( req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res: Response < any , Record < string , any > > , next: NextFunction ) => Promise < void > )
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 > )
( 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 >
middleware
middleware( ) : ( ( req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res: Response < any , Record < string , any > > , next: NextFunction ) => Promise < void > )
Returns ( ( req: Request < ParamsDictionary , any , any , ParsedQs , Record < string , any > > , res: Response < any , Record < string , any > > , next: NextFunction ) => Promise < void > )
( 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
Example
Link
Webhook Data Schema
Link
Webhook Documentation