Table of Contents

Method ExecuteAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ExecuteAsync(DiscordWebhookBuilder)

Executes this webhook with the given DiscordWebhookBuilder.

public Task<DiscordMessage> ExecuteAsync(DiscordWebhookBuilder builder)

Parameters

builder DiscordWebhookBuilder

Webhook builder filled with data to send.

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.