summaryrefslogtreecommitdiff
path: root/bot/src/handle_actions.cpp
diff options
context:
space:
mode:
authorgarder500 <jeremy27.clara22@gmail.com>2025-05-01 17:25:14 +0200
committergarder500 <jeremy27.clara22@gmail.com>2025-05-01 17:25:14 +0200
commit1aa7ec4539170739986bcbb4d542f5432f98bea5 (patch)
treed66322220c7a585a22be4261c96633ac6e2b4f8c /bot/src/handle_actions.cpp
parent6c4647611317e27e38d70bfbc55eb180bc377809 (diff)
Ajout de la gestion des traductions et des messages d'erreur en plusieurs langues, suppression des fichiers de traduction obsolètes.
Diffstat (limited to 'bot/src/handle_actions.cpp')
-rw-r--r--bot/src/handle_actions.cpp4
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;
}