D++ (DPP)
C++ Discord API Bot Library
|
An auto complete interaction. More...
#include <appcommand.h>
Public Member Functions | |
template<typename T > | |
T & | get_value (size_t index) |
Get an option value by index. More... | |
std::string | get_mention () const |
Return a ping/mention for the slash command. 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... | |
An auto complete interaction.
|
inherited |
Return a ping/mention for the slash command.
</airhorn:816437322781949972>
|
inlineinherited |
Get an option value by index.
T | Type to get from the parameter |
index | index of the option |
|
inherited |
the ID of the invoked command
|
inherited |
the name of the invoked command
|
inherited |
Optional: the params + values from the user.
|
inherited |
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.
|
inherited |
type of the command interaction