Table of Contents

Method GetMessageAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetMessageAsync(ulong)

Gets a previously-sent webhook message.

public Task<DiscordMessage> GetMessageAsync(ulong messageId)

Parameters

messageId ulong

Returns

Task<DiscordMessage>

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.

GetMessageAsync(ulong, ulong)

Gets a previously-sent webhook message.

public Task<DiscordMessage> GetMessageAsync(ulong messageId, ulong threadId)

Parameters

messageId ulong
threadId ulong

Returns

Task<DiscordMessage>

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.