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