I use SocketTextChannel.SendMessageAsync() to send my messages. But after I sent them I need their ID. How can I accomplish that?
SendMessageAsync returns the message object for the message that gets sent. Store it and retrieve it's ID property
SendMessageAsync returns the message object for the message that gets sent. Store it and retrieve it's ID property
In case that still confuses you; var message = await SocketTextChannel.SendMessageAsync() will return you an IUserMessage which you can then get the ID from.
Thanks!
Most helpful comment
In case that still confuses you;
var message = await SocketTextChannel.SendMessageAsync()will return you anIUserMessagewhich you can then get the ID from.