C# - Dsharp: How to edit a message sent by the bot

810 Views Asked by At

How can I edit a message that the bot sent using message's ID?

1

There are 1 best solutions below

2
On BEST ANSWER

Your question has very little context, so it's difficult to say what you're doing. But a quick search through the project's issue tracking led me to this post, which indicates you basically just call ModifyAsync on the message:

await botMessage.ModifyAsync("New content", newEmbed);