| D++ (DPP) C++ Discord API Bot Library

Search
Loading...
Searching...
No Matches
dpp::events Namespace Reference

Route interaction event. More...

## Classes

class | automod_rule_create
| Internal event handler for AUTO_MODERATION_RULE_CREATE websocket events. Called for each websocket message of this type. More...
class | automod_rule_delete
| Internal event handler for AUTO_MODERATION_RULE_DELETE websocket events. Called for each websocket message of this type. More...
class | automod_rule_execute
| Internal event handler for AUTO_MODERATION_ACTION_EXECUTION websocket events. Called for each websocket message of this type. More...
class | automod_rule_update
| Internal event handler for AUTO_MODERATION_RULE_UPDATE websocket events. Called for each websocket message of this type. More...
class | channel_create
| Internal event handler for CHANNEL_CREATE websocket events. Called for each websocket message of this type. More...
class | channel_delete
| Internal event handler for CHANNEL_DELETE websocket events. Called for each websocket message of this type. More...
class | channel_pins_update
| Internal event handler for CHANNEL_PINS_UPDATE websocket events. Called for each websocket message of this type. More...
class | channel_update
| Internal event handler for CHANNEL_UPDATE websocket events. Called for each websocket message of this type. More...
class | entitlement_create
| Internal event handler for ENTITLEMENT_CREATE websocket events. Called for each websocket message of this type. More...
class | entitlement_delete
| Internal event handler for ENTITLEMENT_DELETE websocket events. Called for each websocket message of this type. More...
class | entitlement_update
| Internal event handler for ENTITLEMENT_UPDATE websocket events. Called for each websocket message of this type. More...
class | event
| An event object represents an event handled internally, passed from the websocket e.g. MESSAGE_CREATE. More...
class | guild_audit_log_entry_create
| Internal event handler for GUILD_AUDIT_LOG_ENTRY_CREATE websocket events. Called for each websocket message of this type. More...
class | guild_ban_add
| Internal event handler for GUILD_BAN_ADD websocket events. Called for each websocket message of this type. More...
class | guild_ban_remove
| Internal event handler for GUILD_BAN_REMOVE websocket events. Called for each websocket message of this type. More...
class | guild_create
| Internal event handler for GUILD_CREATE websocket events. Called for each websocket message of this type. More...
class | guild_delete
| Internal event handler for GUILD_DELETE websocket events. Called for each websocket message of this type. More...
class | guild_emojis_update
| Internal event handler for GUILD_EMOJIS_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_integrations_update
| Internal event handler for GUILD_INTEGRATIONS_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_join_request_delete
| Internal event handler for GUILD_JOIN_REQUEST_DELETE websocket events. Called for each websocket message of this type. More...
class | guild_member_add
| Internal event handler for GUILD_MEMBER_ADD websocket events. Called for each websocket message of this type. More...
class | guild_member_remove
| Internal event handler for GUILD_MEMBER_REMOVE websocket events. Called for each websocket message of this type. More...
class | guild_member_update
| Internal event handler for GUILD_MEMBERS_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_members_chunk
| Internal event handler for GUILD_MEMBERS_CHUNK websocket events. Called for each websocket message of this type. More...
class | guild_role_create
| Internal event handler for GUILD_ROLE_CREATE websocket events. Called for each websocket message of this type. More...
class | guild_role_delete
| Internal event handler for GUILD_ROLE_DELETE websocket events. Called for each websocket message of this type. More...
class | guild_role_update
| Internal event handler for GUILD_ROLE_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_scheduled_event_create
| Internal event handler for GUILD_SCHEDULED_EVENT_CREATE websocket events. Called for each websocket message of this type. More...
class | guild_scheduled_event_delete
| Internal event handler for GUILD_SCHEDULED_EVENT_DELETE websocket events. Called for each websocket message of this type. More...
class | guild_scheduled_event_update
| Internal event handler for GUILD_SCHEDULED_EVENT_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_scheduled_event_user_add
| Internal event handler for GUILD_SCHEDULED_EVENT_USER_ADD websocket events. Called for each websocket message of this type. More...
class | guild_scheduled_event_user_remove
| Internal event handler for GUILD_SCHEDULED_EVENT_USER_REMOVE websocket events. Called for each websocket message of this type. More...
class | guild_stickers_update
| Internal event handler for GUILD_STICKERS_UPDATE websocket events. Called for each websocket message of this type. More...
class | guild_update
| Internal event handler for GUILD_UPDATE websocket events. Called for each websocket message of this type. More...
class | integration_create
| Internal event handler for INTEGRATION_CREATE websocket events. Called for each websocket message of this type. More...
class | integration_delete
| Internal event handler for INTEGRATION_DELETE websocket events. Called for each websocket message of this type. More...
class | integration_update
| Internal event handler for INTEGRATION_UPDATE websocket events. Called for each websocket message of this type. More...
class | interaction_create
| Internal event handler for INTERACTION_CREATE websocket events. Called for each websocket message of this type. More...
class | invite_create
| Internal event handler for INVITE_CREATE websocket events. Called for each websocket message of this type. More...
class | invite_delete
| Internal event handler for INVITE_DELETE websocket events. Called for each websocket message of this type. More...
class | logger
| Internal event handler for LOG websocket events. Called for each websocket message of this type. More...
class | message_create
| Internal event handler for MESSAGE_CREATE websocket events. Called for each websocket message of this type. More...
class | message_delete
| Internal event handler for MESSAGE_DELETE websocket events. Called for each websocket message of this type. More...
class | message_delete_bulk
| Internal event handler for MESSAGE_DELETE_BULK websocket events. Called for each websocket message of this type. More...
class | message_poll_vote_add
| Internal event handler for MESSAGE_POLL_VOTE_ADD websocket events. Called for each websocket message of this type. More...
class | message_poll_vote_remove
| Internal event handler for MESSAGE_POLL_VOTE_REMOVE websocket events. Called for each websocket message of this type. More...
class | message_reaction_add
| Internal event handler for MESSAGE_REACTION_ADD websocket events. Called for each websocket message of this type. More...
class | message_reaction_remove
| Internal event handler for MESSAGE_REACTION_REMOVE websocket events. Called for each websocket message of this type. More...
class | message_reaction_remove_all
| Internal event handler for MESSAGE_REACTION_REMOVE_ALL websocket events. Called for each websocket message of this type. More...
class | message_reaction_remove_emoji
| Internal event handler for MESSAGE_REACTION_REMOVE_EMOJI websocket events. Called for each websocket message of this type. More...
class | message_update
| Internal event handler for MESSAGE_UPDATE websocket events. Called for each websocket message of this type. More...
class | presence_update
| Internal event handler for PRESENCE_UPDATE websocket events. Called for each websocket message of this type. More...
class | ready
| Internal event handler for READY websocket events. Called for each websocket message of this type. More...
class | resumed
| Internal event handler for RESUMED websocket events. Called for each websocket message of this type. More...
class | stage_instance_create
| Internal event handler for STAGE_INSTANCE_CREATE websocket events. Called for each websocket message of this type. More...
class | stage_instance_delete
| Internal event handler for STAGE_INSTANCE_DELETE websocket events. Called for each websocket message of this type. More...
class | stage_instance_update
| Internal event handler for STAGE_INSTANCE_UPDATE websocket events. Called for each websocket message of this type. More...
class | thread_create
| Internal event handler for THREAD_CREATE websocket events. Called for each websocket message of this type. More...
class | thread_delete
| Internal event handler for THREAD_DELETE websocket events. Called for each websocket message of this type. More...
class | thread_list_sync
| Internal event handler for THREAD_LIST_SYNC websocket events. Called for each websocket message of this type. More...
class | thread_member_update
| Internal event handler for THREAD_MEMBER_UPDATE websocket events. Called for each websocket message of this type. More...
class | thread_members_update
| Internal event handler for THREAD_MEMBERS_UPDATE websocket events. Called for each websocket message of this type. More...
class | thread_update
| Internal event handler for THREAD_UPDATE websocket events. Called for each websocket message of this type. More...
class | typing_start
| Internal event handler for TYPING_START websocket events. Called for each websocket message of this type. More...
class | user_update
| Internal event handler for USER_UPDATE websocket events. Called for each websocket message of this type. More...
class | voice_channel_effect_send
| Internal event handler for VOICE_CHANNEL_EFFECT_SEND websocket events. Called for each websocket message of this type. More...
class | voice_server_update
| Internal event handler for VOICE_SERVER_UPDATE websocket events. Called for each websocket message of this type. More...
class | voice_state_update
| Internal event handler for VOICE_STATE_UPDATE websocket events. Called for each websocket message of this type. More...
class | webhooks_update
| Internal event handler for WEBHOOKS_UPDATE websocket events. Called for each websocket message of this type. More...

## Functions

std::string DPP_EXPORT | internal_handle_interaction (cluster *creator, uint16_t shard_id, json &d, const std::string &raw, bool from_webhook)

## Detailed Description

Route interaction event.

The events namespace holds the internal event handlers for each websocket event. These are handled internally and also dispatched to the user code if the event is hooked.

Parameters

  creator | Creating cluster
  shard_id | Shard ID or 0
  d | JSON data for the event
  raw | Raw JSON string
  from_webhook | True if the interaction comes from a webhook

Returns
  JSON interaction response, only valid when from_webhook is true

## Function Documentation

## ◆ internal_handle_interaction()

std::string DPP_EXPORT dpp::events::internal_handle_interaction | ( | cluster * | creator,
|  | uint16_t | shard_id,
|  | json & | d,
|  | const std::string & | raw,
|  | bool | from_webhook )

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