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
| Variable | Description |
|---|---|
| author_id | User ID who interacted |
| username | User username |
| custom_id | The custom ID of the component |
| component_type | The type of component (button, select, etc) |
| values | Selected values (for select menus) |
| channel_id | Channel ID |
| guild_id | Guild ID |