Skip to content

events/interaction_create

Central interaction router for the Discord gateway.

Listens for Events.InteractionCreate and dispatches to the appropriate handler based on interaction type:

  • CommandInteractioncommand.execute()
  • AutocompleteInteractioncommand.autocomplete()
  • ModalSubmitInteractioncommand.handleModal() (currently only attendance_modal)

const name: InteractionCreate = Events.InteractionCreate

Defined in: events/interaction_create.ts:22

Discord event name this module handles.

execute(interaction): Promise<void>

Defined in: events/interaction_create.ts:28

Routes an incoming interaction to the correct command handler.

Interaction

The raw Discord interaction.

Promise<void>