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
DiscordWebhookBuilderWebhook builder filled with data to send.
threadId
stringTarget thread id (Optional). Defaults to null.
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.