Method EditMessageAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
EditMessageAsync(ulong, ulong, Optional<string>)
Edits a message
public Task<DiscordMessage> EditMessageAsync(ulong channelId, ulong messageId, Optional<string> content)
Parameters
Returns
EditMessageAsync(ulong, ulong, Optional<DiscordEmbed>)
Edits a message
public Task<DiscordMessage> EditMessageAsync(ulong channelId, ulong messageId, Optional<DiscordEmbed> embed)
Parameters
channelId
ulongChannel ID
messageId
ulongMessage ID
embed
Optional<DiscordEmbed>New message embed
Returns
EditMessageAsync(ulong, ulong, DiscordMessageBuilder, bool, IEnumerable<DiscordAttachment>)
Edits a message
public Task<DiscordMessage> EditMessageAsync(ulong channelId, ulong messageId, DiscordMessageBuilder builder, bool suppressEmbeds = false, IEnumerable<DiscordAttachment> attachments = null)
Parameters
channelId
ulongChannel ID
messageId
ulongMessage ID
builder
DiscordMessageBuilderThe builder of the message to edit.
suppressEmbeds
boolWhether to suppress embeds on the message.
attachments
IEnumerable<DiscordAttachment>Attached files to keep.