From 76eb2a58828a60302978f1a9058e1585b95ebc8b Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Sun, 16 Jun 2024 15:55:07 +0100 Subject: [PATCH] fix reversed condition --- macros/src/command/prefix.rs | 2 +- macros/src/command/slash.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/src/command/prefix.rs b/macros/src/command/prefix.rs index 449612bb52c..8df9a6b2824 100644 --- a/macros/src/command/prefix.rs +++ b/macros/src/command/prefix.rs @@ -63,7 +63,7 @@ pub fn generate_prefix_action(inv: &Invocation) -> Result Result>::to_action(|ctx, value| { Box::pin(async move { - let is_framework_cooldown = ctx.command.manual_cooldowns + let is_framework_cooldown = !ctx.command.manual_cooldowns .unwrap_or_else(|| ctx.framework.options.manual_cooldowns); - + if is_framework_cooldown { ctx.command.cooldowns.lock().unwrap().start_cooldown(ctx.cooldown_context()); }