fix(shard): 🐛 Do not raise exception during call when the user's account is too young.
This commit is contained in:
@@ -240,7 +240,7 @@ class Calls(base.Cog):
|
|||||||
if ctx.author.created_at > datetime.now(timezone.utc) - timedelta(
|
if ctx.author.created_at > datetime.now(timezone.utc) - timedelta(
|
||||||
days=exceptions.AccountTooYoungError.days
|
days=exceptions.AccountTooYoungError.days
|
||||||
):
|
):
|
||||||
raise exceptions.AccountTooYoungError()
|
return
|
||||||
|
|
||||||
if not isinstance(message.channel, (discord.channel.TextChannel)):
|
if not isinstance(message.channel, (discord.channel.TextChannel)):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user