Table of Contents

Method ExecuteAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ExecuteAsync(DiscordWebhookBuilder, string)

Executes this webhook with the given DiscordWebhookBuilder.

public Task<DiscordMessage> ExecuteAsync(DiscordWebhookBuilder builder, string threadId = null)

Parameters

builder DiscordWebhookBuilder

Webhook builder filled with data to send.

threadId string

Target thread id (Optional). Defaults to null.

Returns

Task<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.