Table of Contents

Method GetWebhooksAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetWebhooksAsync(CancellationToken)

Gets all the webhooks created for all the channels in this guild.

public Task<IReadOnlyList<DiscordWebhook>> GetWebhooksAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

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.