Method GetWebhooksAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetWebhooksAsync()
Gets all the webhooks created for all the channels in this guild.
public Task<IReadOnlyList<DiscordWebhook>> GetWebhooksAsync()
Returns
- Task<IReadOnlyList<DiscordWebhook>>
A collection of webhooks this guild has.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageWebhooks permission.
- ServerErrorException
Thrown when Discord is unable to process the request.