Method GetWebhookAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetWebhookAsync(ulong)
Gets a webhook.
public Task<DiscordWebhook> GetWebhookAsync(ulong id)
Parameters
id
ulongThe target webhook id.
Returns
- Task<DiscordWebhook>
The requested webhook.
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.