Table of Contents

Method GetWebhookAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetWebhookAsync(ulong)

Gets a webhook

public Task<DiscordWebhook> GetWebhookAsync(ulong id)

Parameters

id ulong

The ID of webhook to get.

Returns

Task<DiscordWebhook>

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.