Skip to content
Classgatewayv0.7.5

BaseHandler

The gateway base, fixes the core base's TCore to the gateway Core and adds the getEvent gate hook.

abstract class BaseHandler<
    ValidEvent extends ValidEventTypes
> extends BaseHandler<ValidEvent, Core>

Member visibility

Filter class members by access level.

Showing members with Protected visibility and higher.

dispatch

The bag for this dispatch. Each interaction gets its own. Every handler for one event shares a single bag.

protected readonly dispatch: DispatchContext

Inherited from:BaseHandler

event

protected readonly event: Event

Inherited from:BaseHandler

execute()

Holds the main logic of your handler. The dispatcher calls it after the handler's gates pass, so a gate that refuses stops execute() from running.

abstract execute(): Promise<void>

Inherited from:BaseHandler

getEvent()

public getEvent(): ValidEvent