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

Method get_component_interaction

src/dpp/slashcommand.cpp:480–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480component_interaction interaction::get_component_interaction() const {
481 if (std::holds_alternative<component_interaction>(data)) {
482 return std::get<component_interaction>(data);
483 } else {
484 throw dpp::logic_exception(err_interaction, "Interaction is not for a component");
485 }
486}
487
488autocomplete_interaction interaction::get_autocomplete_interaction() const {
489 if (std::holds_alternative<autocomplete_interaction>(data)) {

Callers

nothing calls this directly

Calls 1

logic_exceptionClass · 0.85

Tested by

no test coverage detected