D++ (DPP)
C++ Discord API Bot Library
|
An event object represents an event handled internally, passed from the websocket e.g. MESSAGE_CREATE. More...
#include <event.h>
Public Member Functions | |
virtual void | handle (class DiscordClient *client, nlohmann::json &j, const std::string &raw)=0 |
An event object represents an event handled internally, passed from the websocket e.g. MESSAGE_CREATE.
|
pure virtual |
Pure virtual method for event handler code
client | The creating shard |
j | The json data of the event |
raw | The raw event json |
Implemented in dpp::events::logger, dpp::events::guild_create, dpp::events::guild_update, dpp::events::guild_delete, dpp::events::guild_ban_add, dpp::events::guild_ban_remove, dpp::events::guild_emojis_update, dpp::events::guild_integrations_update, dpp::events::guild_join_request_delete, dpp::events::stage_instance_create, dpp::events::stage_instance_delete, dpp::events::guild_member_add, dpp::events::guild_member_remove, dpp::events::guild_members_chunk, dpp::events::guild_member_update, dpp::events::guild_role_create, dpp::events::guild_role_update, dpp::events::guild_role_delete, dpp::events::resumed, dpp::events::ready, dpp::events::channel_create, dpp::events::channel_update, dpp::events::channel_delete, dpp::events::channel_pins_update, dpp::events::message_create, dpp::events::message_update, dpp::events::message_delete, dpp::events::message_delete_bulk, dpp::events::presence_update, dpp::events::typing_start, dpp::events::user_update, dpp::events::message_reaction_add, dpp::events::message_reaction_remove, dpp::events::message_reaction_remove_all, dpp::events::message_reaction_remove_emoji, dpp::events::invite_create, dpp::events::invite_delete, dpp::events::voice_state_update, dpp::events::voice_server_update, dpp::events::webhooks_update, dpp::events::application_command_create, dpp::events::application_command_update, dpp::events::application_command_delete, dpp::events::interaction_create, dpp::events::integration_create, dpp::events::integration_update, and dpp::events::integration_delete.