team-reflex/discord-php
DiscordPHP is a PHP wrapper for Discord’s REST, gateway, and voice APIs. Build Discord bots that run in CLI with ReactPHP-style async handling. Includes limited docs/class reference and community integrations like Laracord for Laravel.
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.
How can I help you explore Laravel packages today?