From bf7c9bde92dad6075b6ddafc781c87046badcfba Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Mon, 26 May 2025 00:00:38 -0300 Subject: [PATCH] fix(shard): :ambulance: `on_message` raising error and not sending messages through calls. --- payphone/cogs/calls/cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 955e3e3..94793dd 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -237,7 +237,7 @@ class Calls(base.Cog): Handle messages in calls. """ - if ctx.author.created_at > datetime.now(timezone.utc) - timedelta( + if message.author.created_at > datetime.now(timezone.utc) - timedelta( days=exceptions.AccountTooYoungError.days ): return