Method GetWebhookWithTokenAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetWebhookWithTokenAsync(ulong, string)
Gets a webhook with a token.
public Task<DiscordWebhook> GetWebhookWithTokenAsync(ulong id, string token)
Parameters
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.