Method GetWebhookWithTokenAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
GetWebhookWithTokenAsync(ulong, string)
Gets a webhook
public Task<DiscordWebhook> GetWebhookWithTokenAsync(ulong id, string token)
Parameters
id
ulongThe ID of webhook to get.
token
string
Returns
- Task<DiscordWebhook>
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.