From 16b3b44defad56d74de0005b58f4a64924b35f32 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Wed, 19 Mar 2025 19:15:09 -0300 Subject: [PATCH] fix(shard): :bug: Discord rejecting messages of people with specific usernames. --- payphone/cogs/calls/cog.py | 6 ++++++ uv.lock | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index a14bbcc..bd80488 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -223,6 +223,12 @@ class Calls(base.Cog): message.channel.id, ) + if participant.display_name.lower() in ["everyone", "here", "wumpus", "discord"]: + await message.reply( + f"❌ You can't use {participant.display_name} as your name in calls.\n-# Restriction imposed by Discord." + ) + return + other_channel = ( call.channels[0] if call.channels[0] != message.channel.id diff --git a/uv.lock b/uv.lock index 542fb8e..1de4414 100644 --- a/uv.lock +++ b/uv.lock @@ -413,7 +413,7 @@ wheels = [ [[package]] name = "payphone" -version = "0.59.0" +version = "0.60.0" source = { virtual = "." } dependencies = [ { name = "aerich" },