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
ulongThe id of the message to edit.
builder
DiscordWebhookBuilderThe builder of the message to edit.
threadId
stringTarget 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.