Table of Contents

Method GetWebhooksAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetWebhooksAsync(CancellationToken)

Returns a list of webhooks.

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

Parameters

cancellationToken CancellationToken

A token to cancel the request.

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.