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

#include <message.h>

+ Collaboration diagram for dpp::select_option:

Classes

struct  inner_select_emoji
 

Public Member Functions

 select_option ()
 
 select_option (const std::string &label, const std::string &value, const std::string &description="")
 
select_optionset_label (const std::string &l)
 
select_optionset_value (const std::string &v)
 
select_optionset_description (const std::string &d)
 
select_optionset_emoji (const std::string &n, dpp::snowflake id=0, bool animated=false)
 
select_optionset_default (bool def)
 
select_optionset_animated (bool anim)
 

Public Attributes

std::string label
 
std::string value
 
std::string description
 
bool is_default
 
struct dpp::select_option::inner_select_emoji emoji
 

Constructor & Destructor Documentation

◆ select_option() [1/2]

dpp::select_option::select_option ( )

◆ select_option() [2/2]

dpp::select_option::select_option ( const std::string &  label,
const std::string &  value,
const std::string &  description = "" 
)

Member Function Documentation

◆ set_animated()

select_option & dpp::select_option::set_animated ( bool  anim)

◆ set_default()

select_option & dpp::select_option::set_default ( bool  def)

◆ set_description()

select_option & dpp::select_option::set_description ( const std::string &  d)

◆ set_emoji()

select_option & dpp::select_option::set_emoji ( const std::string &  n,
dpp::snowflake  id = 0,
bool  animated = false 
)

◆ set_label()

select_option & dpp::select_option::set_label ( const std::string &  l)

◆ set_value()

select_option & dpp::select_option::set_value ( const std::string &  v)

Member Data Documentation

◆ description

std::string dpp::select_option::description

◆ emoji

struct dpp::select_option::inner_select_emoji dpp::select_option::emoji

◆ is_default

bool dpp::select_option::is_default

◆ label

std::string dpp::select_option::label

◆ value

std::string dpp::select_option::value
D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ 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