summaryrefslogtreecommitdiff
path: root/bot/src/handle_actions.cpp
diff options
context:
space:
mode:
authorsoler_j <soler_j@etna-alternance.net>2025-04-30 23:44:34 +0200
committersoler_j <soler_j@etna-alternance.net>2025-04-30 23:44:34 +0200
commit23cba7cd6b32b7c5db98aa5a3f9206d4bce07902 (patch)
treef9b32c80987937143681178f6b52f1a661ee6928 /bot/src/handle_actions.cpp
parentb53c72f7421ff8218354ec8a13187c984960778c (diff)
Ajout de la vérification des permissions pour l'action de suppression et gestion des statuts d'activitéHEADmain
Diffstat (limited to 'bot/src/handle_actions.cpp')
-rw-r--r--bot/src/handle_actions.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/src/handle_actions.cpp b/bot/src/handle_actions.cpp
index 15645cb..e469ec7 100644
--- a/bot/src/handle_actions.cpp
+++ b/bot/src/handle_actions.cpp
@@ -17,13 +17,15 @@ dpp::task<bool> handle_actions(const dpp::slashcommand_t &event, const nlohmann:
std::string action_type = action["type"];
if (action_type == "delete_messages" && event.command.is_guild_interaction())
{
- co_await thinking;
auto return_value = co_await delete_action(event, action, key_values, user_ptr, cluster);
+ co_await thinking;
// if it's a false, we need to return false !
if (!return_value)
{
co_return false;
}
+
+
}
}
if (i == actions.size())