MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / command_option

Method command_option

src/dpp/slashcommand.cpp:361–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361command_option::command_option(command_option_type t, const std::string &n, const std::string &d, bool r) :
362 type(t), name(n), description(d), required(r), focused(false), autocomplete(false)
363{
364 if (std::any_of(n.begin(), n.end(), [](unsigned char c){ return std::isupper(c); })) {
365 throw dpp::logic_exception(err_command_has_caps, "Command options can not contain capital letters in the name of the option.");
366 }
367}
368
369command_option& command_option::add_choice(const command_option_choice &o)
370{

Callers

nothing calls this directly

Calls 4

any_ofFunction · 0.85
logic_exceptionClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected