Classhttpv0.1.0
InteractionHandler
Shared base the repliable interaction handlers extend.
Not a public entry point. Extend SlashHandler, ContextMenuHandler, ButtonHandler, SelectMenuHandler, or ModalHandler instead. This class adds showModal on top of the reply members.
abstract class InteractionHandler<
Event extends Repliables
> extends RepliableHandler<Event>Member visibility
Filter class members by access level.
InteractionHandler(
event: Event,
core: Core,
dispatch?: DispatchContext
)Showing members with Protected visibility and higher.
Properties
Methods
Event
The repliable interaction type this handler processes
Event extends Repliablesapi
Typed Discord REST API (@discordjs/core/http-only) over core.rest, one instance per core. The interaction callbacks on api.interactions bypass the reply surface. The no-raw-interaction-acks rule flags them in handler classes.
protected api: APIInherited from:RepliableHandler
buildSender()
protected buildSender(
event: Event,
core: Core,
routeId: string
): ReplySenderInherited from:RepliableHandler
protected async showModal(
this: InteractionHandler<
Exclude<Repliables, APIModalSubmitInteraction>
>,
modal: ModalLike
): Promise<void>