Classgatewayv0.5.1
WebhookLog
Base class for a gateway subscriber that delivers its event to a Discord webhook, binding this.core to the gateway Core.
abstract class WebhookLog<
KeyOfSubscribers extends SubscriptionKey
> extends WebhookLog<KeyOfSubscribers, Core>Member visibility
Filter class members by access level.
constructor
Instantiates the subscriber with event data and core.
Subscriber(data: AllSubscriptions[KeyOfSubscribers], core: TCore)Parameter:
dataThe subscriber event data
Parameter:
coreThe core framework instance
Inherited from:Subscriber
KeyOfSubscribers
The subscription key this reporter receives
KeyOfSubscribers extends SubscriptionKeycore
protected readonly core: TCoreInherited from:Subscriber
data
protected readonly data: AllSubscriptions[KeyOfSubscribers]Inherited from:Subscriber
logger
protected readonly logger: LoggerInherited from:Subscriber
execute()
Inherited from:WebhookLog
report()
Builds the message for one published event.
abstract report(
suppressed: number
): WebhookReport | Promise<WebhookReport>Parameter:
suppressedHow many events were dropped since the last card
Inherited from:WebhookLog
throttleKey()
Events sharing this key collapse into one card per minute. Return null to send every event.
Inherited from:WebhookLog