| 478 | } |
| 479 | |
| 480 | component_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 | |
| 488 | autocomplete_interaction interaction::get_autocomplete_interaction() const { |
| 489 | if (std::holds_alternative<autocomplete_interaction>(data)) { |
nothing calls this directly
no test coverage detected