Table of Contents

Method EditMessageAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

EditMessageAsync(ulong, DiscordWebhookBuilder, string)

Edits a previously-sent webhook message.

public Task<DiscordMessage> EditMessageAsync(ulong messageId, DiscordWebhookBuilder builder, string threadId = null)

Parameters

messageId ulong

The id of the message to edit.

builder DiscordWebhookBuilder

The builder of the message to edit.

threadId string

Target thread id (Optional). Defaults to null.

Returns

Task<DiscordMessage>

The modified DiscordMessage

Exceptions

NotFoundException

Thrown when the webhook does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.