Table of Contents

Class MessageCache

Namespace
DSharpPlus
Assembly
DSharpPlus.dll
public class MessageCache : IMessageCacheProvider
Inheritance
object
MessageCache
Implements

Constructors

MessageCache(IMemoryCache, IOptions<DiscordConfiguration>)

Methods

Add(DiscordMessage)

Add a DiscordMessage object to the cache.

Remove(ulong)

Remove the DiscordMessage object associated with the message ID from the cache.

TryGet(ulong, out DiscordMessage?)

Try to get a DiscordMessage object associated with the message ID from the cache.