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
DiscordWebhookBuilderWebhook builder filled with data to send.
Returns
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.