Method TryGet
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
TryGet(ulong, out DiscordMessage?)
Try to get a DiscordMessage object associated with the message ID from the cache.
bool TryGet(ulong messageId, out DiscordMessage? message)
Parameters
messageIdulongThe ID of the message to retrieve from the cache.
messageDiscordMessageThe DiscordMessage object retrieved from the cache, if it exists; null otherwise.