From 87ffc4644b118ff0ea9eb69099752ce253d5718e Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sun, 16 Mar 2025 11:25:58 -0300 Subject: [PATCH] fix(shard): :bug: Not found when the propagated message is manually deleted and then the original one does too. --- payphone/cogs/calls/cog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 0ad87f8..5a4fdbb 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -460,7 +460,11 @@ class Calls(base.Cog): bot_token=constants.TOKEN, ) - await webhook.delete_message(propagation_id) + try: + await webhook.delete_message(propagation_id) + + except discord.errors.NotFound: + pass @commands.Cog.listener() async def on_raw_message_edit(self, payload: discord.RawMessageUpdateEvent) -> None: