Table of Contents

Method TryGetMessageAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

TryGetMessageAsync(ulong)

Tries to get a previously-sent webhook message.

public Task<DiscordMessage?> TryGetMessageAsync(ulong messageId)

Parameters

messageId ulong

Returns

Task<DiscordMessage>

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

TryGetMessageAsync(ulong, ulong)

Tries to get a previously-sent webhook message.

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

Parameters

messageId ulong
threadId ulong

Returns

Task<DiscordMessage>

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.