fix(shard): 🐛 Not found when the propagated message is manually deleted and then the original one does too.
This commit is contained in:
@@ -460,7 +460,11 @@ class Calls(base.Cog):
|
|||||||
bot_token=constants.TOKEN,
|
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()
|
@commands.Cog.listener()
|
||||||
async def on_raw_message_edit(self, payload: discord.RawMessageUpdateEvent) -> None:
|
async def on_raw_message_edit(self, payload: discord.RawMessageUpdateEvent) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user