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

Method get_command_interaction

src/dpp/slashcommand.cpp:472–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472command_interaction interaction::get_command_interaction() const {
473 if (std::holds_alternative<command_interaction>(data)) {
474 return std::get<command_interaction>(data);
475 } else {
476 throw dpp::logic_exception(err_interaction, "Interaction is not for a command");
477 }
478}
479
480component_interaction interaction::get_component_interaction() const {
481 if (std::holds_alternative<component_interaction>(data)) {

Callers 3

mainFunction · 0.80
get_parameterMethod · 0.80

Calls 1

logic_exceptionClass · 0.85

Tested by

no test coverage detected