Discord.py: on_message_edit() doesn't include the author

Created on 19 Aug 2019  路  1Comment  路  Source: Rapptz/discord.py

Hi, I've an issue with on_message_edit(), I'm trying to log every edited messages but I can't retrieve the message author :

`@bot.event

async def on_message_edit(before, after):

    data = discord.Embed(tittle = str(before.author), description=str(before.channel))
    data.add_field(name="Orgiginal message :", value=str(before.content), inline=False)
    data.add_field(name="Modified message :", value=str(after.content), inline=False)
    await bot.get_channel(channel).send(embed=data)`

This code work except that the before.author is empty

invalid

Most helpful comment

You spelled title wrong as tittle and this is better suited at the discord.py discord server #help channels.

>All comments

You spelled title wrong as tittle and this is better suited at the discord.py discord server #help channels.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JackL0 picture JackL0  路  3Comments

Yolotroll101 picture Yolotroll101  路  3Comments

adhoc92 picture adhoc92  路  3Comments

Spyder-exe picture Spyder-exe  路  3Comments

Rimmy50 picture Rimmy50  路  3Comments