From 4dac9f7edc820c0724338d97f782dc6d9bfb7663 Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Fri, 13 Oct 2023 12:07:49 +0530 Subject: [PATCH] [ThreadOpener] fix cooldown --- threadopener/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/threadopener/core.py b/threadopener/core.py index a65c5c8c..fca8e15e 100644 --- a/threadopener/core.py +++ b/threadopener/core.py @@ -111,8 +111,7 @@ async def on_message(self, message: discord.Message) -> None: ) return - ctx = await self.bot.get_context(message) - bucket = self.spam_control.get_bucket(ctx) + bucket = self.spam_control.get_bucket(message) # type: ignore current = message.created_at.timestamp() retry_after = bucket and bucket.update_rate_limit(current) if retry_after and message.author.id in self.bot.owner_ids: # type: ignore