DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::input_event_data Class Reference

Data representing an input-event, which is any message or interaction that is coming into the bot as an input. More...

#include <FoundationEntities.hpp>

Public Member Functions

const channel_datagetChannelData () const
 Returns the channel_data of this input-event. More...
 
const guild_member_datagetGuildMemberData () const
 Returns the guild_member_data of this input-event. More...
 
const interaction_datagetInteractionData () const
 Returns the interaction data, if appplicable, of this input-event. More...
 
const message_datagetMessageData () const
 Returns the message data, if applicable, of this input-event. More...
 
const user_datagetUserData () const
 Returns the user_data of this input-event. More...
 

Public Data Members

input_event_response_type responseType {}
 The type of response that this input value represents.
 

Member Function Documentation

◆ getChannelData()

const channel_data & discord_core_api::input_event_data::getChannelData ( ) const
Returns
channel_data a channel_data containing the channel_data data.

Definition at line 491 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getGuildMemberData()

const guild_member_data & discord_core_api::input_event_data::getGuildMemberData ( ) const
Returns
guild_member_data a guild_member_data containing the guild_member_data data.

Definition at line 495 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getInteractionData()

const interaction_data & discord_core_api::input_event_data::getInteractionData ( ) const
Returns
interaction_data a snowflake containing the interaction data.

Definition at line 720 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getMessageData()

const message_data & discord_core_api::input_event_data::getMessageData ( ) const
Returns
message a message structure.

Definition at line 724 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getUserData()

const user_data & discord_core_api::input_event_data::getUserData ( ) const
Returns
user_data a user_data containing the user_data data.

Definition at line 483 of file FoundationEntities.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: