Table of Contents

Method DeleteMessageAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.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.

DeleteMessageAsync(ulong, ulong)

Deletes a message that was created by the webhook.

public Task DeleteMessageAsync(ulong messageId, ulong threadId)

Parameters

messageId ulong

The id of the message to delete

threadId ulong

Target thread id (Optional). Defaults to null.

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.