diff options
| author | soler_j <soler_j@etna-alternance.net> | 2025-05-04 01:26:36 +0200 |
|---|---|---|
| committer | soler_j <soler_j@etna-alternance.net> | 2025-05-04 01:26:36 +0200 |
| commit | e82d081f0fc630fe9244ff9d461f91dd1d4dc63b (patch) | |
| tree | 09c49fec114326a982648ccb4ce961f092a44b19 /bot/src/handle_actions.cpp | |
| parent | 23cba7cd6b32b7c5db98aa5a3f9206d4bce07902 (diff) | |
| parent | 502ae25637f103a063c145509c051d1ce6061e4f (diff) | |
Merge branch '1-more-actions-to-handle' of github.com:ketsuna-org/bot-creator-api into 1-more-actions-to-handle
Diffstat (limited to 'bot/src/handle_actions.cpp')
| -rw-r--r-- | bot/src/handle_actions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/src/handle_actions.cpp b/bot/src/handle_actions.cpp index e469ec7..0b3f2ff 100644 --- a/bot/src/handle_actions.cpp +++ b/bot/src/handle_actions.cpp @@ -1,8 +1,6 @@ -#include <dpp/dpp.h> #include "../include/actions/delete.hpp" dpp::task<bool> handle_actions(const dpp::slashcommand_t &event, const nlohmann::json &actions, const std::unordered_map<std::string, std::string> &key_values) { - dpp::cluster *cluster = event.owner; dpp::user user_ptr = event.command.get_issuing_user(); dpp::async thinking = event.co_thinking(false); @@ -36,4 +34,6 @@ dpp::task<bool> handle_actions(const dpp::slashcommand_t &event, const nlohmann: } } } + co_await thinking; + co_return true; } |
