Method TryGetMessageAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
TryGetMessageAsync(ulong, bool)
Tries to get a specific message.
public Task<DiscordMessage?> TryGetMessageAsync(ulong id, bool fetch = true)
Parameters
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ReadMessageHistory permission.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.