Classgatewayv0.6.0
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.
constructor
Constructs a new instance of the BaseHandler class
protected BaseHandler(
event: Event,
core: TCore,
dispatch: DispatchContext,
channel?: LoggerChannelId
)Inherited from:BaseHandler
ValidEvent
ValidEvent extends ValidEventTypescore
readonly core: TCoreInherited from:BaseHandler
dispatch
The bag for this dispatch. Each interaction gets its own. Every handler for one event shares a single bag.
protected readonly dispatch: DispatchContextInherited from:BaseHandler
event
protected readonly event: EventInherited from:BaseHandler
logger
protected readonly logger: LoggerInherited 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.
Inherited from:BaseHandler
public getEvent(): ValidEvent