![]()  | 
  
    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>
 Inheritance diagram for dpp::command_interaction:
 Collaboration diagram for dpp::command_interaction:Public Member Functions | |
| std::string | get_mention () const | 
| Return a ping/mention for the slash command.  More... | |
| 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... | |
| 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).  More... | |
| slashcommand_contextmenu_type | type | 
| The type of command interaction.  More... | |
Details of a command within an interaction. This subobject represents the application command associated with the interaction.
| std::string dpp::command_interaction::get_mention | ( | ) | const | 
Return a ping/mention for the slash command.
</airhorn:816437322781949972> 
      
  | 
  inline | 
Get an option value by index.
| T | Type to get from the parameter | 
| index | index of the option | 
| 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).
| slashcommand_contextmenu_type dpp::command_interaction::type | 
The type of command interaction.