D++ (DPP)
C++ Discord API Bot Library
|
Represents the sending source of a command. This is passed to any command handler and should be passed back to commandhandler::reply(), allowing the reply method to route any replies back to the origin, which may be a slash command or a message. Both require different response facilities but we want this to be transparent if you use the command handler class. More...
#include <commandhandler.h>
Public Attributes | |
snowflake | guild_id = 0 |
Sending guild id. More... | |
snowflake | channel_id = 0 |
Source channel id. More... | |
snowflake | command_id = 0 |
Command ID of a slash command. More... | |
std::string | command_token |
Token for sending a slash command reply. More... | |
user * | issuer |
The user who issued the command. More... | |
Represents the sending source of a command. This is passed to any command handler and should be passed back to commandhandler::reply(), allowing the reply method to route any replies back to the origin, which may be a slash command or a message. Both require different response facilities but we want this to be transparent if you use the command handler class.
snowflake dpp::command_source::channel_id = 0 |
Source channel id.
snowflake dpp::command_source::command_id = 0 |
Command ID of a slash command.
std::string dpp::command_source::command_token |
Token for sending a slash command reply.
snowflake dpp::command_source::guild_id = 0 |
Sending guild id.
user* dpp::command_source::issuer |
The user who issued the command.