Discord.py Bot Edit Snipe Command That Snipes The Recently Edited Message
I've been working on a discord bot and I was able to create the snipe command that, well snipes the recent deleted message but now I'm trying to program it to be able to edit snipe
Solution 1:
You can simply achieve this by using on_message_edit and using message_before prior to editing the message. Below is an example
async def on_message_edit(message_before, message_after):
author = message_before.author
guild = message_before.guild.name
channel = message_before.channel
await channel.send(f"""
Original Message
{message_before.content}
Updated Message
{message_after.content}""")
From this, you can just copy what you have done above.
Post a Comment for "Discord.py Bot Edit Snipe Command That Snipes The Recently Edited Message"