Classgatewayv0.1.0-next.3
WebhookLog
Base class for subscribers that deliver their event to a Discord webhook.
Declare the url's environment variable with @WebhookUrl@WebhookUrl and implement reportreport. Url resolution, validation, sender reuse, and sending run in the base. When the variable is unset the reporter is skipped at registration with a boot warning.
abstract class WebhookLog<
KeyOfSubscribers extends SubscriptionKey
> extends Subscriber<KeyOfSubscribers>abstract class WebhookLog<
KeyOfSubscribers extends SubscriptionKey
> extends Subscriber<KeyOfSubscribers>Member visibility
Filter class members by access level.
constructor
Instantiates the subscriber with event data and core.
Subscriber(
data: AllSubscriptions[KeyOfSubscribers],
core: Core
)Subscriber(
data: AllSubscriptions[KeyOfSubscribers],
core: Core
)Parameter:
dataThe subscriber event data
Parameter:
coreThe core framework instance
Inherited from:Subscriber
KeyOfSubscribers
The subscription key this reporter receives
KeyOfSubscribers extends SubscriptionKeyKeyOfSubscribers extends SubscriptionKeycore
Inherited from:Subscriber
data
protected readonly data: AllSubscriptions[KeyOfSubscribers]protected readonly data: AllSubscriptions[KeyOfSubscribers]Inherited from:Subscriber
logger
Inherited from:Subscriber
public abstract report(): WebhookReport | Promise<WebhookReport>public abstract report(): WebhookReport | Promise<WebhookReport>