D++ (DPP)
C++ Discord API Bot Library
|
Details of a command within an interaction. This subobject represents the application command associated with the interaction. More...
#include <appcommand.h>
Public Member Functions | |
template<typename T > | |
T & | get_value (size_t index) |
Get an option value by index. More... | |
Public Attributes | |
snowflake | id |
the ID of the invoked command More... | |
std::string | name |
the name of the invoked command More... | |
std::vector< command_data_option > | options |
Optional: the params + values from the user. More... | |
slashcommand_contextmenu_type | type |
type of the command interaction More... | |
dpp::snowflake | target_id |
Non-zero target ID for context menu actions. e.g. user id or message id whom clicked or tapped with the context menu https://discord.com/developers/docs/interactions/application-commands#user-commands. More... | |
Details of a command within an interaction. This subobject represents the application command associated with the interaction.
|
inline |
Get an option value by index.
Type | to get from the parameter |
index | index number of parameter |
snowflake dpp::command_interaction::id |
the ID of the invoked command
std::string dpp::command_interaction::name |
the name of the invoked command
std::vector<command_data_option> dpp::command_interaction::options |
Optional: the params + values from the user.
dpp::snowflake dpp::command_interaction::target_id |
Non-zero target ID for context menu actions. e.g. user id or message id whom clicked or tapped with the context menu https://discord.com/developers/docs/interactions/application-commands#user-commands.
slashcommand_contextmenu_type dpp::command_interaction::type |
type of the command interaction