-
Notifications
You must be signed in to change notification settings - Fork 238
Interactions
Alexander Maassen edited this page May 22, 2023
·
1 revision
Called with an Interaction
object when an interaction is created.
// use Discord\Parts\Interactions\Interaction;
$discord->on(Event::INTERACTION_CREATE, function (Interaction $interaction, Discord $discord) {
// ...
});
Application Command & Message component listeners are processed before this event is called. Useful if you want to create a customized callback or have interaction response persists after Bot restart.
Note: This wiki is currently Work In Progress. Consider reading the docs instead.
- Application Command (Slash based)
Command Client (Message based)
- Activity
- Application
- Guild
- Private Channel
- User
Components
-
ActionRow
- Buttons
- Option (commands)
- SelectMenu
- TextInput
Builders