Classhttpv0.1.0-next.0
InteractionHandler
Shared base the repliable interaction handlers extend.
Not a public entry point. Extend SlashHandlerSlashHandler, ContextMenuHandlerContextMenuHandler, ButtonHandlerButtonHandler, SelectMenuHandlerSelectMenuHandler, or ModalHandlerModalHandler instead. This class adds showModalshowModal on top of the reply members.
abstract class InteractionHandler<
Event extends Repliables
> extends RepliableHandler<Event>abstract class InteractionHandler<
Event extends Repliables
> extends RepliableHandler<Event>Member visibility
Filter class members by access level.
InteractionHandler(
event: Event,
core: Core,
dispatch?: DispatchContext
)InteractionHandler(
event: Event,
core: Core,
dispatch?: DispatchContext
)Showing members with Protected visibility and higher.
Methods
Event
The repliable interaction type this handler processes
Event extends RepliablesEvent 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<
Exclude<Repliables, APIModalSubmitInteraction>
>,
modal: ModalLike
): Promise<void>protected async showModal(
this: InteractionHandler<
Exclude<Repliables, APIModalSubmitInteraction>
>,
modal: ModalLike
): Promise<void>