Search code examples
c#.netdsharp+

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


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


Solution

  • 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);