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

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

#include <FoundationEntities.hpp>

Inheritance diagram for discord_core_api::command_data:
[legend]

Public Member Functions

const channel_datagetChannelData () const
 Returns the channel_data of this input-event. More...
 
serializer_value getCommandArguments () const
 Returns the collection of command inputs/options for this command. More...
 
jsonifier::string getCommandName () const
 Returns the name of this entered command. More...
 
const guild_member_datagetGuildMemberData () const
 Returns the guild_member_data of this input-event. More...
 
const input_event_datagetInputEventData () const
 Returns the input_event_data for this command. 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...
 
jsonifier::string getSubCommandGroupName () const
 Returns the subcommand-name of this entered command group. More...
 
jsonifier::string getSubCommandName () const
 Returns the subcommand-name of this entered command. More...
 
const user_datagetUserData () const
 Returns the user_data of this input-event. More...
 

Member Function Documentation

◆ getChannelData()

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

Definition at line 1100 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getCommandArguments()

serializer_value discord_core_api::command_data::getCommandArguments ( ) const
Returns
serializer_value a serializer_value containing the arguments entered with this command.

Definition at line 1048 of file FoundationEntities.cpp.

◆ getCommandName()

jsonifier::string discord_core_api::command_data::getCommandName ( ) const
Returns
jsonifier::string a string containing the name of this command.

Definition at line 1112 of file FoundationEntities.cpp.

◆ getGuildMemberData()

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

Definition at line 1096 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getInputEventData()

const input_event_data & discord_core_api::command_data::getInputEventData ( ) const
Returns
input_event_data an input_event_data containing the data associated with this command.

Definition at line 1124 of file FoundationEntities.cpp.

◆ getInteractionData()

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

Definition at line 1092 of file FoundationEntities.cpp.

◆ getMessageData()

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

Definition at line 1104 of file FoundationEntities.cpp.

Here is the call graph for this function:

◆ getSubCommandGroupName()

jsonifier::string discord_core_api::command_data::getSubCommandGroupName ( ) const
Returns
jsonifier::string a string containing the name of this sub-command's group.

Definition at line 1120 of file FoundationEntities.cpp.

◆ getSubCommandName()

jsonifier::string discord_core_api::command_data::getSubCommandName ( ) const
Returns
jsonifier::string a string containing the name of this sub-command.

Definition at line 1116 of file FoundationEntities.cpp.

◆ getUserData()

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

Definition at line 1108 of file FoundationEntities.cpp.

Here is the call graph for this function:

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