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