Table of Contents

Method GetWebhookWithTokenAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetWebhookWithTokenAsync(ulong, string)

Gets a webhook with a token.

public Task<DiscordWebhook> GetWebhookWithTokenAsync(ulong id, string token)

Parameters

id ulong

The target webhook id.

token string

The target webhook token.

Returns

Task<DiscordWebhook>

The requested webhook.

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.