| 470 | } |
| 471 | |
| 472 | command_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 | |
| 480 | component_interaction interaction::get_component_interaction() const { |
| 481 | if (std::holds_alternative<component_interaction>(data)) { |
no test coverage detected