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

Command data, for functions executed by the CommandController. More...

#include <FoundationEntities.hpp>

Inheritance diagram for DiscordCoreAPI::CommandData:
[legend]

Public Member Functions

ChannelData getChannelData ()
 Returns the ChannelData of this input-event. More...
 
SerializerValue getCommandArguments ()
 Returns the collection of command inputs/options for this command. More...
 
std::string getCommandName ()
 Returns the name of this entered command. More...
 
DiscordCoreClientgetDiscordCoreClient ()
 Returns a pointer to the currently active DiscordCoreClient class. More...
 
GuildData getGuildData ()
 Returns the Guild of this input-event. More...
 
GuildMemberData getGuildMemberData ()
 Returns the GuildMemberData of this input-event. More...
 
InputEventData getInputEventData ()
 Returns the InputEventData for this command. More...
 
InteractionData getInteractionData ()
 Returns the Interaction data, if appplicable, of this input-event. More...
 
MessageData getMessageData ()
 Returns the Message data, if applicable, of this input-event. More...
 
std::string getSubCommandGroupName ()
 Returns the subcommand-name of this entered command group. More...
 
std::string getSubCommandName ()
 Returns the subcommand-name of this entered command. More...
 
UserData getUserData ()
 Returns the UserData of this input-event. More...
 

Member Function Documentation

◆ getChannelData()

ChannelData DiscordCoreAPI::CommandData::getChannelData ( )
Returns
ChannelData A ChannelData containing the ChannelData data.

Definition at line 1123 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getCommandArguments()

SerializerValue DiscordCoreAPI::CommandData::getCommandArguments ( )
Returns
SerializerValue A SerializerValue containing the arguments entered with this command.

Definition at line 453 of file FoundationEntities.cpp.

◆ getCommandName()

std::string DiscordCoreAPI::CommandData::getCommandName ( )
Returns
std::string A string containing the name of this command.

Definition at line 1139 of file FoundationEntities.cpp.

◆ getDiscordCoreClient()

DiscordCoreClient * DiscordCoreAPI::CommandData::getDiscordCoreClient ( )
Returns
DiscordCoreClient* A pointer to the currently active DiscordCoreClient.

◆ getGuildData()

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

Definition at line 1131 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getGuildMemberData()

GuildMemberData DiscordCoreAPI::CommandData::getGuildMemberData ( )
Returns
GuildMemberData A GuildMemberData containing the GuildMemberData data.

Definition at line 1119 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getInputEventData()

InputEventData DiscordCoreAPI::CommandData::getInputEventData ( )
Returns
InputEventData An InputEventData containing the data associated with this command.

Definition at line 1151 of file FoundationEntities.cpp.

◆ getInteractionData()

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

Definition at line 1115 of file FoundationEntities.cpp.

◆ getMessageData()

MessageData DiscordCoreAPI::CommandData::getMessageData ( )
Returns
Message A Message structure.

Definition at line 1127 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getSubCommandGroupName()

std::string DiscordCoreAPI::CommandData::getSubCommandGroupName ( )
Returns
std::string A string containing the name of this sub-command's group.

Definition at line 1147 of file FoundationEntities.cpp.

◆ getSubCommandName()

std::string DiscordCoreAPI::CommandData::getSubCommandName ( )
Returns
std::string A string containing the name of this sub-command.

Definition at line 1143 of file FoundationEntities.cpp.

◆ getUserData()

UserData DiscordCoreAPI::CommandData::getUserData ( )
Returns
UserData A UserData containing the UserData data.

Definition at line 1135 of file FoundationEntities.cpp.

Here is the call graph for this function:

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