Skip to content Skip to sidebar Skip to footer

Can I Safely Ignore These Errors?

@client.event async def on_message_edit(before, after): channel = client.get_channel (649024513614282764) embed=discord.Embed(title='Edited Message', description=f'Message

Solution 1:

Your embed isn't being sent because before.content and after.content are empty strings.
Hence the error telling you that those fields are required.
The message in question is likely from a bot and only has an embed.
You can handle this by simply checking for the existence of before.content and after.content before you add the field to the embed.


Post a Comment for "Can I Safely Ignore These Errors?"