'How get and edit message by ID in discord.net?

To get channel I use

Client.GetChannel(Bot.ChannelStatisticsID)

To get message I use

Channel.GetMessageAsync(Bot.MessageStatisticsID)

How edit message?



Solution 1:[1]

Since you have your channel you can try this:

await Channel.ModifyMessageAsync(YourMessageID, m => m.Content = "YourNewContent");

Remember that bot can only edit its own messages.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hantick