Method GetWebhooksAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetWebhooksAsync()
Returns a list of webhooks
public Task<IReadOnlyList<DiscordWebhook>> GetWebhooksAsync()
Returns
- Task<IReadOnlyList<DiscordWebhook>>
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageWebhooks permission.
- NotFoundException
Thrown when the channel does not exist.
- ServerErrorException
Thrown when Discord is unable to process the request.