Table of Contents

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 ulong

Webhook ID

webhookToken string

Webhook token

messageId ulong

The ID of the message to edit.

builder DiscordWebhookBuilder

The builder of the message to edit.

attachments IEnumerable<DiscordAttachment>

Attached files to keep.

Returns

Task<DiscordMessage>

The modified DiscordMessage