D++ (DPP)
C++ Discord API Bot Library
|
Event handlers can be attached to from your program to be notified of updates to discord. Each one can be hooked by attaching a lambda, std::function or std::bind or equivalent to the event with one of the functions below, for example to be notified of messages being sent, assuming you have an instance of dpp::cluster called bot
:
Be notified of a change in voice state for a user
Be notified of log lines to implement your own logging of bot activity
Be notified of use of a slash command on a server
Be notified of a guild being deleted (bot kicked, left, or server unavailable)
Be notified of a channel being deleted
Be notified of a channel being edited
Be notified of a shard becoming ready
Be notified of a message being deleted
Be notified of an application command (slash command) being deleted
Be notified of a guild member being removed (kicked or leaving)
Be notified of an application command (slash command) being created
Be notified of a connection being resumed
Be notified of a guild role being created
Be notified of a user typing
Be notified of a reaction on a message
Be notified of a set of guild member information being received
Be notified of a reaction being removed from a message
Be notified of a guild being created/joined
Be notified of a channel being created
Be notified of all message reactions being removed on a message for one particular emoji
Be notified of a set of messages being deleted
Be notified of a role being edited
Be notified of a role being deleted
Be notified of the channel pins for a channel being updated
Be notified of a message reaction being removed
Be notified of the voice server endpoint being updated
Be notified of a guild's emojis being updated
Be notified of a user's presence/activity being updated
Be notified of a webhook being updated
Be notified of a guild member being added
Be notified of an invite being deleted
Be notified of a guild being updated
Be notified of a guild integration being updated
Be notified of a guild member being updated
Be notified of an application command (slash command) being updated
Be notified of an invite being created
Be notified of a message being edited
Be notified of a user's information being updated
Be notified of a message being sent
Be notified of a ban being added
Be notified of a ban being removed
Be notified of an integration being created
Be notified of an integration being updated
Be notified of an integration being deleted