You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alexander Maassen edited this page May 22, 2023
·
1 revision
Interaction Create
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.