DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::InputEventData 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

ChannelData getChannelData () const
 Returns the Channel of this input-event.
 
GuildData getGuildData () const
 Returns the Guild of this input-event.
 
GuildMemberData getGuildMemberData () const
 Returns the GuildMember of this input-event.
 
InteractionData getInteractionData () const
 Returns the Interaction data, if appplicable, of this input-event.
 
MessageData getMessageData () const
 Returns the Message data, if applicable, of this input-event.
 
UserData getUserData () const
 Returns the User of this input-event.
 

Public Data Members

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

Member Function Documentation

◆ getChannelData()

ChannelData DiscordCoreAPI::InputEventData::getChannelData ( ) const
Returns
ChannelData A Channel containing the Channel data.

Definition at line 3559 of file FoundationEntities.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGuildData()

GuildData DiscordCoreAPI::InputEventData::getGuildData ( ) const
Returns
GuildData A Guild containing the Guild data.

Definition at line 3573 of file FoundationEntities.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGuildMemberData()

GuildMemberData DiscordCoreAPI::InputEventData::getGuildMemberData ( ) const
Returns
GuildMemberData A GuildMember containing the GuildMember data.

Definition at line 3566 of file FoundationEntities.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getInteractionData()

InteractionData DiscordCoreAPI::InputEventData::getInteractionData ( ) const
Returns
InteractionData A Snowflake containing the Interaction data.

Definition at line 3580 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getMessageData()

MessageData DiscordCoreAPI::InputEventData::getMessageData ( ) const
Returns
MessageData A MessageData structure.

Definition at line 3584 of file FoundationEntities.cpp.

Here is the caller graph for this function:

◆ getUserData()

UserData DiscordCoreAPI::InputEventData::getUserData ( ) const
Returns
UserData A User containing the User data.

Definition at line 3552 of file FoundationEntities.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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