From 9f2cdc4344ef1574dcb9faf64c6b62a9e51f3d15 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sun, 25 May 2025 23:37:54 -0300 Subject: [PATCH] fix(shard): :bug: Do not raise exception during call when the user's account is too young. --- 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 a45ba4d..955e3e3 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -240,7 +240,7 @@ class Calls(base.Cog): if ctx.author.created_at > datetime.now(timezone.utc) - timedelta( days=exceptions.AccountTooYoungError.days ): - raise exceptions.AccountTooYoungError() + return if not isinstance(message.channel, (discord.channel.TextChannel)): return