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.
Events are payloads sent over the socket to a client that correspond to events in Discord.
All gateway events are enabled by default and can be individually disabled using disabledEvents options.
Most events also requires the respective Intents enabled (as well privileged ones enabled from Developers Portal) regardless the enabled event setting.
To listen on gateway events, use the event emitter callback and Event name constants.
Some events are internally handled by the library and may not be registered a listener:
Event::READYEvent::RESUMEDEvent::GUILD_MEMBERS_CHUNKIf you are an advanced user, you may listen to those events before internally handled with the library by parsing the 'raw' dispatch event data.
How can I help you explore Laravel packages today?