|
typedef std::variant< std::monostate, int64_t, double > | dpp::command_option_range |
| A minimum or maximum value/length for dpp::co_number, dpp::co_integer and dpp::co_string types of a dpp::command_option. More...
|
|
typedef std::variant< std::monostate, std::string, int64_t, bool, snowflake, double > | dpp::command_value |
| This type is a variant that can hold any of the potential native data types represented by the enum dpp::command_option_type. More...
|
|
typedef std::unordered_map< snowflake, guild_command_permissions > | dpp::guild_command_permissions_map |
| A group of guild command permissions. More...
|
|
typedef std::unordered_map< snowflake, slashcommand > | dpp::slashcommand_map |
| A group of application slash commands. More...
|
|
|
enum | dpp::command_option_type : uint8_t {
dpp::co_sub_command = 1,
dpp::co_sub_command_group = 2,
dpp::co_string = 3,
dpp::co_integer = 4,
dpp::co_boolean = 5,
dpp::co_user = 6,
dpp::co_channel = 7,
dpp::co_role = 8,
dpp::co_mentionable = 9,
dpp::co_number = 10,
dpp::co_attachment = 11
} |
| Represents command option types. More...
|
|
enum | dpp::command_permission_type {
dpp::cpt_role = 1,
dpp::cpt_user = 2
} |
| type of permission in the dpp::command_permission class More...
|
|
enum | dpp::interaction_response_type {
dpp::ir_pong = 1,
dpp::ir_channel_message_with_source = 4,
dpp::ir_deferred_channel_message_with_source = 5,
dpp::ir_deferred_update_message = 6,
dpp::ir_update_message = 7,
dpp::ir_autocomplete_reply = 8,
dpp::ir_modal_dialog = 9,
dpp::ir_premium_required = 10
} |
| Response types when responding to an interaction within on_interaction_create. More...
|
|
enum | dpp::interaction_type {
dpp::it_ping = 1,
dpp::it_application_command = 2,
dpp::it_component_button = 3,
dpp::it_autocomplete = 4,
dpp::it_modal_submit = 5
} |
| Types of interaction in the dpp::interaction class. More...
|
|
enum | dpp::slashcommand_contextmenu_type {
dpp::ctxm_none = 0,
dpp::ctxm_chat_input = 1,
dpp::ctxm_user = 2,
dpp::ctxm_message = 3
} |
| Right-click context menu types. More...
|
|
|
void | dpp::from_json (const nlohmann::json &j, autocomplete_interaction &ai) |
| helper function to deserialize an autocomplete_interaction from json More...
|
|
void | dpp::from_json (const nlohmann::json &j, command_data_option &cdo) |
| helper function to deserialize a command_data_option from json More...
|
|
void | dpp::from_json (const nlohmann::json &j, command_interaction &ci) |
| helper function to deserialize a command_interaction from json More...
|
|
void | dpp::from_json (const nlohmann::json &j, component_interaction &bi) |
| helper function to deserialize a component_interaction from json More...
|
|
void | dpp::from_json (const nlohmann::json &j, interaction &i) |
| helper function to deserialize an interaction from json More...
|
|
void | dpp::to_json (nlohmann::json &j, const command_option &opt) |
| helper function to serialize a command_option to json More...
|
|
void | dpp::to_json (nlohmann::json &j, const command_option_choice &choice) |
| helper function to serialize a command_option_choice to json More...
|
|
void | dpp::to_json (nlohmann::json &j, const command_permission &cp) |
| helper function to serialize a command_permission to json More...
|
|
void | dpp::to_json (nlohmann::json &j, const guild_command_permissions &gcp) |
| helper function to serialize a guild_command_permissions to json More...
|
|
void | dpp::to_json (nlohmann::json &j, const slashcommand &cmd) |
| helper function to serialize a slashcommand to json More...
|
|