Classgatewayv0.4.1
abstract class InteractionMiddleware<
Repliable extends Repliables
> extends BaseHandler<Repliable>Member visibility
Filter class members by access level.
InteractionMiddleware(event: Repliable, core: Core)Repliable
The interaction type this middleware processes
Repliable extends Repliablescore
readonly core: TCoreInherited from:BaseHandler
- optional
dispatch
protected readonly dispatch: DispatchContext | undefinedInherited 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
getEvent()
getEvent(): ValidEventInherited from:BaseHandler