Table of Contents

Method DeleteMessageAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DeleteMessageAsync(ulong)

Deletes a message that was created by the webhook.

public Task DeleteMessageAsync(ulong messageId)

Parameters

messageId ulong

The id of the message to delete

Returns

Task

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.