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...

#include <event.h>

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

Public Member Functions

virtual void handle (class discord_client *client, nlohmann::json &j, const std::string &raw)=0
 

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::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::guild_stickers_update, dpp::events::stage_instance_create, dpp::events::stage_instance_update, 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::thread_create, dpp::events::thread_update, dpp::events::thread_delete, dpp::events::thread_list_sync, dpp::events::thread_member_update, dpp::events::thread_members_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::interaction_create, dpp::events::integration_create, dpp::events::integration_update, dpp::events::integration_delete, dpp::events::guild_scheduled_event_create, dpp::events::guild_scheduled_event_update, dpp::events::guild_scheduled_event_delete, dpp::events::guild_scheduled_event_user_add, and dpp::events::guild_scheduled_event_user_remove.

D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ 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