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
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
Returns
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.