Skip to content
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.

Clone this wiki locally