Method EditWebhookMessageAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
EditWebhookMessageAsync(ulong, string, ulong, DiscordWebhookBuilder, IEnumerable<DiscordAttachment>)
Edits a previously-sent webhook message.
public Task<DiscordMessage> EditWebhookMessageAsync(ulong webhookId, string webhookToken, ulong messageId, DiscordWebhookBuilder builder, IEnumerable<DiscordAttachment> attachments = null)
Parameters
webhookId
ulongWebhook ID
webhookToken
stringWebhook token
messageId
ulongThe ID of the message to edit.
builder
DiscordWebhookBuilderThe builder of the message to edit.
attachments
IEnumerable<DiscordAttachment>Attached files to keep.
Returns
- Task<DiscordMessage>
The modified DiscordMessage