From d5d8c56ba166ed18f34e34f4af07f9b7a591c845 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Wed, 8 Jan 2025 13:08:30 -0500 Subject: [PATCH] fix(commands): don't check cooldown for edited messages --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index b09c65c..ea2ebb3 100644 --- a/core.py +++ b/core.py @@ -47,7 +47,7 @@ async def on_message(message, edited=False): await command_locks[(message.guild.id, message.author.id)].acquire() try: - if cooldowns := command_cooldowns.get(message.author.id): + if (cooldowns := command_cooldowns.get(message.author.id)) and not edited: if (end_time := cooldowns.get(matched)) and int(time.time()) < int( end_time ):