D++ (DPP)
C++ Discord API Bot Library
dpp::dispatcher Class Reference

The dispatcher class contains a set of std::functions representing hooked events that the user code is interested in. These are modified via the on_eventname style methods in the cluster class. More...

#include <dispatcher.h>

+ Collaboration diagram for dpp::dispatcher:

Public Attributes

std::function< void(const log_t &event)> log
 Event handler function pointer for log event. More...
 
std::function< void(const voice_state_update_t &event)> voice_state_update
 Event handler function pointer for voice state update event. More...
 
std::function< void(const voice_client_speaking_t &event)> voice_client_speaking
 Event handler function pointer for voice client speaking event. More...
 
std::function< void(const voice_client_disconnect_t &event)> voice_client_disconnect
 Event handler function pointer for voice client disconnect event. More...
 
std::function< void(const interaction_create_t &event)> interaction_create
 Event handler function pointer for interaction create event. More...
 
std::function< void(const button_click_t &event)> button_click
 Event handler function pointer for button click event. More...
 
std::function< void(const select_click_t &event)> select_click
 Event handler function pointer for button click event. More...
 
std::function< void(const guild_delete_t &event)> guild_delete
 Event handler function pointer for guild delete event. More...
 
std::function< void(const channel_delete_t &event)> channel_delete
 Event handler function pointer for channel delete event. More...
 
std::function< void(const channel_update_t &event)> channel_update
 Event handler function pointer for channel update event. More...
 
std::function< void(const ready_t &event)> ready
 Event handler function pointer for ready event. More...
 
std::function< void(const message_delete_t &event)> message_delete
 Event handler function pointer for message delete event. More...
 
std::function< void(const application_command_delete_t &event)> application_command_delete
 Event handler function pointer for application command delete event. More...
 
std::function< void(const guild_member_remove_t &event)> guild_member_remove
 Event handler function pointer for guild member remove event. More...
 
std::function< void(const application_command_create_t &event)> application_command_create
 Event handler function pointer for guild member remove event. More...
 
std::function< void(const resumed_t &event)> resumed
 Event handler function pointer for resumed event. More...
 
std::function< void(const guild_role_create_t &event)> guild_role_create
 Event handler function pointer for guild role create event. More...
 
std::function< void(const typing_start_t &event)> typing_start
 Event handler function pointer for typing start event. More...
 
std::function< void(const message_reaction_add_t &event)> message_reaction_add
 Event handler function pointer for message reaction add event. More...
 
std::function< void(const guild_members_chunk_t &event)> guild_members_chunk
 Event handler function pointer for guild members chunk event. More...
 
std::function< void(const message_reaction_remove_t &event)> message_reaction_remove
 Event handler function pointer for message reaction remove event. More...
 
std::function< void(const guild_create_t &event)> guild_create
 Event handler function pointer for guild create event. More...
 
std::function< void(const channel_create_t &event)> channel_create
 Event handler function pointer for guild channel create event. More...
 
std::function< void(const message_reaction_remove_emoji_t &event)> message_reaction_remove_emoji
 Event handler function pointer for message reaction remove emoji event. More...
 
std::function< void(const message_delete_bulk_t &event)> message_delete_bulk
 Event handler function pointer for message delete bulk event. More...
 
std::function< void(const guild_role_update_t &event)> guild_role_update
 Event handler function pointer for guild role update event. More...
 
std::function< void(const guild_role_delete_t &event)> guild_role_delete
 Event handler function pointer for guild role delete event. More...
 
std::function< void(const channel_pins_update_t &event)> channel_pins_update
 Event handler function pointer for channel pins update event. More...
 
std::function< void(const message_reaction_remove_all_t &event)> message_reaction_remove_all
 Event handler function pointer for message reaction remove all event. More...
 
std::function< void(const voice_server_update_t &event)> voice_server_update
 Event handler function pointer for voice server update event. More...
 
std::function< void(const guild_emojis_update_t &event)> guild_emojis_update
 Event handler function pointer for guild emojis update event. More...
 
std::function< void(const presence_update_t &event)> presence_update
 Event handler function pointer for presence update event. More...
 
std::function< void(const webhooks_update_t &event)> webhooks_update
 Event handler function pointer for webhooks update event. More...
 
std::function< void(const guild_member_add_t &event)> guild_member_add
 Event handler function pointer for guild member add event. More...
 
std::function< void(const invite_delete_t &event)> invite_delete
 Event handler function pointer for invite delete event. More...
 
std::function< void(const guild_update_t &event)> guild_update
 Event handler function pointer for guild update event. More...
 
std::function< void(const guild_integrations_update_t &event)> guild_integrations_update
 Event handler function pointer for guild integrations update event. More...
 
std::function< void(const guild_member_update_t &event)> guild_member_update
 Event handler function pointer for guild member update event. More...
 
std::function< void(const application_command_update_t &event)> application_command_update
 Event handler function pointer for application command update event. More...
 
std::function< void(const invite_create_t &event)> invite_create
 Event handler function pointer for invite create event. More...
 
std::function< void(const message_update_t &event)> message_update
 Event handler function pointer for message update event. More...
 
std::function< void(const user_update_t &event)> user_update
 Event handler function pointer for user update event. More...
 
std::function< void(const message_create_t &event)> message_create
 Event handler function pointer for message create event. More...
 
std::function< void(const guild_ban_add_t &event)> guild_ban_add
 Event handler function pointer for guild ban add event. More...
 
std::function< void(const guild_ban_remove_t &event)> guild_ban_remove
 Event handler function pointer for guild ban remove event. More...
 
std::function< void(const integration_create_t &event)> integration_create
 Event handler function pointer for integration create event. More...
 
std::function< void(const integration_update_t &event)> integration_update
 Event handler function pointer for integration update event. More...
 
std::function< void(const integration_delete_t &event)> integration_delete
 Event handler function pointer for integration delete event. More...
 
std::function< void(const thread_create_t &event)> thread_create
 Event handler function pointer for thread create event. More...
 
std::function< void(const thread_update_t &event)> thread_update
 Event handler function pointer for thread update event. More...
 
std::function< void(const thread_delete_t &event)> thread_delete
 Event handler function pointer for thread delete event. More...
 
std::function< void(const thread_list_sync_t &event)> thread_list_sync
 Event handler function pointer for thread list sync event. More...
 
std::function< void(const thread_member_update_t &event)> thread_member_update
 Event handler function pointer for thread member update event. More...
 
std::function< void(const thread_members_update_t &event)> thread_members_update
 Event handler function pointer for thread members update event. More...
 
std::function< void(const voice_buffer_send_t &event)> voice_buffer_send
 Event handler function pointer for voice buffer send event. More...
 
std::function< void(const voice_user_talking_t &event)> voice_user_talking
 Event handler function pointer for voice user talking event. More...
 
std::function< void(const voice_ready_t &event)> voice_ready
 Event handler function pointer for voice ready event. More...
 
std::function< void(const voice_receive_t &event)> voice_receive
 Event handler function pointer for voice receive event. More...
 
std::function< void(const voice_track_marker_t &event)> voice_track_marker
 Event handler function pointer for voice track marker event. More...
 
std::function< void(const guild_join_request_delete_t &event)> guild_join_request_delete
 Event handler function pointer for guild join request delete event. More...
 
std::function< void(const stage_instance_create_t &event)> stage_instance_create
 Event handler function pointer for stage instance create event. More...
 
std::function< void(const stage_instance_delete_t &event)> stage_instance_delete
 Event handler function pointer for stage instance delete event. More...
 
std::function< void(const guild_stickers_update_t &event)> stickers_update
 Event handler function pointer for guild sticker update event. More...
 

Detailed Description

The dispatcher class contains a set of std::functions representing hooked events that the user code is interested in. These are modified via the on_eventname style methods in the cluster class.

Member Data Documentation

◆ application_command_create

std::function<void(const application_command_create_t& event)> dpp::dispatcher::application_command_create

Event handler function pointer for guild member remove event.

Parameters
eventEvent parameters

◆ application_command_delete

std::function<void(const application_command_delete_t& event)> dpp::dispatcher::application_command_delete

Event handler function pointer for application command delete event.

Parameters
eventEvent parameters

◆ application_command_update

std::function<void(const application_command_update_t& event)> dpp::dispatcher::application_command_update

Event handler function pointer for application command update event.

Parameters
eventEvent parameters

◆ button_click

std::function<void(const button_click_t& event)> dpp::dispatcher::button_click

Event handler function pointer for button click event.

Parameters
eventEvent parameters

◆ channel_create

std::function<void(const channel_create_t& event)> dpp::dispatcher::channel_create

Event handler function pointer for guild channel create event.

Parameters
eventEvent parameters

◆ channel_delete

std::function<void(const channel_delete_t& event)> dpp::dispatcher::channel_delete

Event handler function pointer for channel delete event.

Parameters
eventEvent parameters

◆ channel_pins_update

std::function<void(const channel_pins_update_t& event)> dpp::dispatcher::channel_pins_update

Event handler function pointer for channel pins update event.

Parameters
eventEvent parameters

◆ channel_update

std::function<void(const channel_update_t& event)> dpp::dispatcher::channel_update

Event handler function pointer for channel update event.

Parameters
eventEvent parameters

◆ guild_ban_add

std::function<void(const guild_ban_add_t& event)> dpp::dispatcher::guild_ban_add

Event handler function pointer for guild ban add event.

Parameters
eventEvent parameters

◆ guild_ban_remove

std::function<void(const guild_ban_remove_t& event)> dpp::dispatcher::guild_ban_remove

Event handler function pointer for guild ban remove event.

Parameters
eventEvent parameters

◆ guild_create

std::function<void(const guild_create_t& event)> dpp::dispatcher::guild_create

Event handler function pointer for guild create event.

Parameters
eventEvent parameters

◆ guild_delete

std::function<void(const guild_delete_t& event)> dpp::dispatcher::guild_delete

Event handler function pointer for guild delete event.

Parameters
eventEvent parameters

◆ guild_emojis_update

std::function<void(const guild_emojis_update_t& event)> dpp::dispatcher::guild_emojis_update

Event handler function pointer for guild emojis update event.

Parameters
eventEvent parameters

◆ guild_integrations_update

std::function<void(const guild_integrations_update_t& event)> dpp::dispatcher::guild_integrations_update

Event handler function pointer for guild integrations update event.

Parameters
eventEvent parameters

◆ guild_join_request_delete

std::function<void(const guild_join_request_delete_t& event)> dpp::dispatcher::guild_join_request_delete

Event handler function pointer for guild join request delete event.

Parameters
eventEvent parameters

◆ guild_member_add

std::function<void(const guild_member_add_t& event)> dpp::dispatcher::guild_member_add

Event handler function pointer for guild member add event.

Parameters
eventEvent parameters

◆ guild_member_remove

std::function<void(const guild_member_remove_t& event)> dpp::dispatcher::guild_member_remove

Event handler function pointer for guild member remove event.

Parameters
eventEvent parameters

◆ guild_member_update

std::function<void(const guild_member_update_t& event)> dpp::dispatcher::guild_member_update

Event handler function pointer for guild member update event.

Parameters
eventEvent parameters

◆ guild_members_chunk

std::function<void(const guild_members_chunk_t& event)> dpp::dispatcher::guild_members_chunk

Event handler function pointer for guild members chunk event.

Parameters
eventEvent parameters

◆ guild_role_create

std::function<void(const guild_role_create_t& event)> dpp::dispatcher::guild_role_create

Event handler function pointer for guild role create event.

Parameters
eventEvent parameters

◆ guild_role_delete

std::function<void(const guild_role_delete_t& event)> dpp::dispatcher::guild_role_delete

Event handler function pointer for guild role delete event.

Parameters
eventEvent parameters

◆ guild_role_update

std::function<void(const guild_role_update_t& event)> dpp::dispatcher::guild_role_update

Event handler function pointer for guild role update event.

Parameters
eventEvent parameters

◆ guild_update

std::function<void(const guild_update_t& event)> dpp::dispatcher::guild_update

Event handler function pointer for guild update event.

Parameters
eventEvent parameters

◆ integration_create

std::function<void(const integration_create_t& event)> dpp::dispatcher::integration_create

Event handler function pointer for integration create event.

Parameters
eventEvent parameters

◆ integration_delete

std::function<void(const integration_delete_t& event)> dpp::dispatcher::integration_delete

Event handler function pointer for integration delete event.

Parameters
eventEvent parameters

◆ integration_update

std::function<void(const integration_update_t& event)> dpp::dispatcher::integration_update

Event handler function pointer for integration update event.

Parameters
eventEvent parameters

◆ interaction_create

std::function<void(const interaction_create_t& event)> dpp::dispatcher::interaction_create

Event handler function pointer for interaction create event.

Parameters
eventEvent parameters

◆ invite_create

std::function<void(const invite_create_t& event)> dpp::dispatcher::invite_create

Event handler function pointer for invite create event.

Parameters
eventEvent parameters

◆ invite_delete

std::function<void(const invite_delete_t& event)> dpp::dispatcher::invite_delete

Event handler function pointer for invite delete event.

Parameters
eventEvent parameters

◆ log

std::function<void(const log_t& event)> dpp::dispatcher::log

Event handler function pointer for log event.

Parameters
eventEvent parameters

◆ message_create

std::function<void(const message_create_t& event)> dpp::dispatcher::message_create

Event handler function pointer for message create event.

Parameters
eventEvent parameters

◆ message_delete

std::function<void(const message_delete_t& event)> dpp::dispatcher::message_delete

Event handler function pointer for message delete event.

Parameters
eventEvent parameters

◆ message_delete_bulk

std::function<void(const message_delete_bulk_t& event)> dpp::dispatcher::message_delete_bulk

Event handler function pointer for message delete bulk event.

Parameters
eventEvent parameters

◆ message_reaction_add

std::function<void(const message_reaction_add_t& event)> dpp::dispatcher::message_reaction_add

Event handler function pointer for message reaction add event.

Parameters
eventEvent parameters

◆ message_reaction_remove

std::function<void(const message_reaction_remove_t& event)> dpp::dispatcher::message_reaction_remove

Event handler function pointer for message reaction remove event.

Parameters
eventEvent parameters

◆ message_reaction_remove_all

std::function<void(const message_reaction_remove_all_t& event)> dpp::dispatcher::message_reaction_remove_all

Event handler function pointer for message reaction remove all event.

Parameters
eventEvent parameters

◆ message_reaction_remove_emoji

std::function<void(const message_reaction_remove_emoji_t& event)> dpp::dispatcher::message_reaction_remove_emoji

Event handler function pointer for message reaction remove emoji event.

Parameters
eventEvent parameters

◆ message_update

std::function<void(const message_update_t& event)> dpp::dispatcher::message_update

Event handler function pointer for message update event.

Parameters
eventEvent parameters

◆ presence_update

std::function<void(const presence_update_t& event)> dpp::dispatcher::presence_update

Event handler function pointer for presence update event.

Parameters
eventEvent parameters

◆ ready

std::function<void(const ready_t& event)> dpp::dispatcher::ready

Event handler function pointer for ready event.

Parameters
eventEvent parameters

◆ resumed

std::function<void(const resumed_t& event)> dpp::dispatcher::resumed

Event handler function pointer for resumed event.

Parameters
eventEvent parameters

◆ select_click

std::function<void(const select_click_t& event)> dpp::dispatcher::select_click

Event handler function pointer for button click event.

Parameters
eventEvent parameters

◆ stage_instance_create

std::function<void(const stage_instance_create_t& event)> dpp::dispatcher::stage_instance_create

Event handler function pointer for stage instance create event.

Parameters
eventEvent parameters

◆ stage_instance_delete

std::function<void(const stage_instance_delete_t& event)> dpp::dispatcher::stage_instance_delete

Event handler function pointer for stage instance delete event.

Parameters
eventEvent parameters

◆ stickers_update

std::function<void(const guild_stickers_update_t& event)> dpp::dispatcher::stickers_update

Event handler function pointer for guild sticker update event.

Parameters
eventEvent parameters

◆ thread_create

std::function<void(const thread_create_t& event)> dpp::dispatcher::thread_create

Event handler function pointer for thread create event.

Parameters
eventEvent parameters

◆ thread_delete

std::function<void(const thread_delete_t& event)> dpp::dispatcher::thread_delete

Event handler function pointer for thread delete event.

Parameters
eventEvent parameters

◆ thread_list_sync

std::function<void(const thread_list_sync_t& event)> dpp::dispatcher::thread_list_sync

Event handler function pointer for thread list sync event.

Parameters
eventEvent parameters

◆ thread_member_update

std::function<void(const thread_member_update_t& event)> dpp::dispatcher::thread_member_update

Event handler function pointer for thread member update event.

Parameters
eventEvent parameters

◆ thread_members_update

std::function<void(const thread_members_update_t& event)> dpp::dispatcher::thread_members_update

Event handler function pointer for thread members update event.

Parameters
eventEvent parameters

◆ thread_update

std::function<void(const thread_update_t& event)> dpp::dispatcher::thread_update

Event handler function pointer for thread update event.

Parameters
eventEvent parameters

◆ typing_start

std::function<void(const typing_start_t& event)> dpp::dispatcher::typing_start

Event handler function pointer for typing start event.

Parameters
eventEvent parameters

◆ user_update

std::function<void(const user_update_t& event)> dpp::dispatcher::user_update

Event handler function pointer for user update event.

Parameters
eventEvent parameters

◆ voice_buffer_send

std::function<void(const voice_buffer_send_t& event)> dpp::dispatcher::voice_buffer_send

Event handler function pointer for voice buffer send event.

Parameters
eventEvent parameters

◆ voice_client_disconnect

std::function<void(const voice_client_disconnect_t& event)> dpp::dispatcher::voice_client_disconnect

Event handler function pointer for voice client disconnect event.

Parameters
eventEvent parameters

◆ voice_client_speaking

std::function<void(const voice_client_speaking_t& event)> dpp::dispatcher::voice_client_speaking

Event handler function pointer for voice client speaking event.

Parameters
eventEvent parameters

◆ voice_ready

std::function<void(const voice_ready_t& event)> dpp::dispatcher::voice_ready

Event handler function pointer for voice ready event.

Parameters
eventEvent parameters

◆ voice_receive

std::function<void(const voice_receive_t& event)> dpp::dispatcher::voice_receive

Event handler function pointer for voice receive event.

Parameters
eventEvent parameters

◆ voice_server_update

std::function<void(const voice_server_update_t& event)> dpp::dispatcher::voice_server_update

Event handler function pointer for voice server update event.

Parameters
eventEvent parameters

◆ voice_state_update

std::function<void(const voice_state_update_t& event)> dpp::dispatcher::voice_state_update

Event handler function pointer for voice state update event.

Parameters
eventEvent parameters

◆ voice_track_marker

std::function<void(const voice_track_marker_t& event)> dpp::dispatcher::voice_track_marker

Event handler function pointer for voice track marker event.

Parameters
eventEvent parameters

◆ voice_user_talking

std::function<void(const voice_user_talking_t& event)> dpp::dispatcher::voice_user_talking

Event handler function pointer for voice user talking event.

Parameters
eventEvent parameters

◆ webhooks_update

std::function<void(const webhooks_update_t& event)> dpp::dispatcher::webhooks_update

Event handler function pointer for webhooks update event.

Parameters
eventEvent parameters
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