Classseedcordv0.15.0
InteractionHandler
Shared base the typed interaction handlers extend.
Not a public entry point. You should be using SlashHandlerSlashHandler, ButtonHandlerButtonHandler, ModalHandlerModalHandler, or SelectMenuHandlerSelectMenuHandler instead. This class only carries the repliable-event plumbing those bases share, so DO NOT use it directly.
abstract class InteractionHandler<Repliable extends Repliables>
extends BaseHandler<Repliable>
implements Handlerabstract class InteractionHandler<Repliable extends Repliables>
extends BaseHandler<Repliable>
implements HandlerMember visibility
Filter class members by access level.
Repliable
The interaction type this handler processes
Repliable extends RepliablesRepliable extends Repliablescore
Inherited from:BaseHandler
event
protected readonly event: ValidEventprotected readonly event: ValidEventInherited from:BaseHandler
logger
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()execute() from running.
Inherited from:BaseHandler