Method ExecuteAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ExecuteAsync(DiscordWebhookBuilder, ulong?)
Executes this webhook with the given DiscordWebhookBuilder.
public Task<DiscordMessage> ExecuteAsync(DiscordWebhookBuilder builder, ulong? threadId = null)
Parameters
builderDiscordWebhookBuilderWebhook builder filled with data to send.
threadIdulong?Target 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.