events/interaction_create
Central interaction router for the Discord gateway.
Listens for Events.InteractionCreate and dispatches to the
appropriate handler based on interaction type:
CommandInteraction→command.execute()AutocompleteInteraction→command.autocomplete()ModalSubmitInteraction→command.handleModal()(currently onlyattendance_modal)
Variables
Section titled “Variables”
constname:InteractionCreate=Events.InteractionCreate
Defined in: events/interaction_create.ts:22
Discord event name this module handles.
Functions
Section titled “Functions”execute()
Section titled “execute()”execute(
interaction):Promise<void>
Defined in: events/interaction_create.ts:28
Routes an incoming interaction to the correct command handler.
Parameters
Section titled “Parameters”interaction
Section titled “interaction”Interaction
The raw Discord interaction.
Returns
Section titled “Returns”Promise<void>