discord py on message edit code example
Example 1: discord py edit message
await message.edit(content="newcontent")
Example 2: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')