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
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
Returns
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.