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
messageId
ulongThe ID of the message to retrieve from the cache.
message
DiscordMessageThe DiscordMessage object retrieved from the cache, if it exists; null otherwise.