Skip to content

Commit 32393b2

Browse files
authored
route close ticket button events
1 parent d573215 commit 32393b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/main.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ int main()
8484
});
8585

8686
bot.on_button_click([&bot](const dpp::button_click_t& event) {
87-
if (event.custom_id == "delSuggestion")
87+
if (event.custom_id == "closeTicket")
88+
cmd::closeTicketButton(bot, event);
89+
else if (event.custom_id == "delSuggestion")
8890
utils::suggestion::deleteSuggestion(bot, event);
8991
else if (event.custom_id == "editSuggestion")
9092
utils::suggestion::editSuggestion(bot, event);

0 commit comments

Comments
 (0)