Classgatewayv0.1.4
InteractionHandler
Shared base the typed interaction handlers extend.
Not a public entry point. Extend SlashHandler, ButtonHandler, ModalHandler, or SelectMenuHandler instead. This class adds showModal on top of the reply members those bases share.
abstract class InteractionHandler<
Repliable extends Repliables
> extends RepliableHandler<Repliable>Member visibility
Filter class members by access level.
InteractionHandler(
event: Repliable,
core: Core,
dispatch?: DispatchContext
)Showing members with Protected visibility and higher.
Methods
Repliable
The interaction type this handler processes
Repliable extends RepliablesbuildSender()
protected buildSender(
event: Event,
core: Core,
routeId: string
): ReplySenderInherited from:RepliableHandler
protected async showModal(
this: InteractionHandler<NonModalInteraction>,
modal: ModalLike
): Promise<void>