D++ (DPP)
C++ Discord API Bot Library
dpp::command_option_choice Struct Reference

This struct represents choices in a multiple choice option for a command parameter. It has both a string name, and a value parameter which is a variant, meaning it can hold different potential types (see dpp::command_value) that you can retrieve with std::get(). More...

#include <slashcommand.h>

+ Collaboration diagram for dpp::command_option_choice:

Public Member Functions

 command_option_choice ()=default
 Construct a new command option choice object. More...
 
 command_option_choice (const std::string &n, command_value v)
 Construct a new command option choice object. More...
 

Public Attributes

std::string name
 Option name (1-32 chars) More...
 
command_value value
 Option value. More...
 

Detailed Description

This struct represents choices in a multiple choice option for a command parameter. It has both a string name, and a value parameter which is a variant, meaning it can hold different potential types (see dpp::command_value) that you can retrieve with std::get().

Constructor & Destructor Documentation

◆ command_option_choice() [1/2]

dpp::command_option_choice::command_option_choice ( )
default

Construct a new command option choice object.

◆ command_option_choice() [2/2]

dpp::command_option_choice::command_option_choice ( const std::string &  n,
command_value  v 
)

Construct a new command option choice object.

Parameters
nname to initialise with
vvalue to initialise with

Member Data Documentation

◆ name

std::string dpp::command_option_choice::name

Option name (1-32 chars)

◆ value

command_value dpp::command_option_choice::value

Option value.

D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0