docsTriggersInteractionsonInteraction

onInteraction

Fires every time a user interacts with a component (buttons, select menus, modals).

When it fires

Triggered on any component interaction.

Available Context Variables

VariableDescription
author_idUser ID who interacted
usernameUser username
custom_idThe custom ID of the component
component_typeThe type of component (button, select, etc)
valuesSelected values (for select menus)
channel_idChannel ID
guild_idGuild ID