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