D++ (DPP)
C++ Discord API Bot Library
dpp::events::event Class Referenceabstract

An event object represents an event handled internally, passed from the websocket e.g. MESSAGE_CREATE. More...

+ Inheritance diagram for dpp::events::event:

Public Member Functions

virtual void handle (class discord_client *client, nlohmann::json &j, const std::string &raw)=0
 Pure virtual method for event handler code. More...
 

Detailed Description

An event object represents an event handled internally, passed from the websocket e.g. MESSAGE_CREATE.

Member Function Documentation

◆ handle()

virtual void dpp::events::event::handle ( class discord_client client,
nlohmann::json &  j,
const std::string &  raw 
)
pure virtual

Pure virtual method for event handler code.

Parameters
clientThe creating shard
jThe json data of the event
rawThe raw event json

Implemented in dpp::events::entitlement_delete, dpp::events::entitlement_update, dpp::events::entitlement_create, dpp::events::guild_audit_log_entry_create, dpp::events::automod_rule_execute, dpp::events::automod_rule_delete, dpp::events::automod_rule_update, dpp::events::automod_rule_create, dpp::events::guild_scheduled_event_user_remove, dpp::events::guild_scheduled_event_user_add, dpp::events::guild_scheduled_event_delete, dpp::events::guild_scheduled_event_update, dpp::events::guild_scheduled_event_create, dpp::events::integration_delete, dpp::events::integration_update, dpp::events::integration_create, dpp::events::interaction_create, dpp::events::webhooks_update, dpp::events::voice_server_update, dpp::events::voice_state_update, dpp::events::invite_delete, dpp::events::invite_create, dpp::events::message_reaction_remove_emoji, dpp::events::message_reaction_remove_all, dpp::events::message_reaction_remove, dpp::events::message_reaction_add, dpp::events::user_update, dpp::events::typing_start, dpp::events::presence_update, dpp::events::message_poll_vote_remove, dpp::events::message_poll_vote_add, dpp::events::message_delete_bulk, dpp::events::message_delete, dpp::events::message_update, dpp::events::message_create, dpp::events::thread_members_update, dpp::events::thread_member_update, dpp::events::thread_list_sync, dpp::events::thread_delete, dpp::events::thread_update, dpp::events::thread_create, dpp::events::channel_pins_update, dpp::events::channel_delete, dpp::events::channel_update, dpp::events::channel_create, dpp::events::ready, dpp::events::resumed, dpp::events::guild_role_delete, dpp::events::guild_role_update, dpp::events::guild_role_create, dpp::events::guild_member_update, dpp::events::guild_members_chunk, dpp::events::guild_member_remove, dpp::events::guild_member_add, dpp::events::stage_instance_delete, dpp::events::stage_instance_update, dpp::events::stage_instance_create, dpp::events::guild_stickers_update, dpp::events::guild_join_request_delete, dpp::events::guild_integrations_update, dpp::events::guild_emojis_update, dpp::events::guild_ban_remove, dpp::events::guild_ban_add, dpp::events::guild_delete, dpp::events::guild_update, dpp::events::guild_create, and dpp::events::logger.

D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0