Class CacheConfiguration
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Configuration for Discord client caching behavior.
public sealed class CacheConfiguration
- Inheritance
-
CacheConfiguration
- Inherited Members
Constructors
- CacheConfiguration()
Creates a new cache configuration with default values.
- CacheConfiguration(CacheConfiguration)
Creates a clone of another cache configuration.
Properties
- AlwaysCacheMembers
Sets whether the client should attempt to cache members if exclusively using unprivileged intents.
This will only take effect if there are no GuildMembers or GuildPresences intents specified. Otherwise, this will always be overwritten to true.
Defaults to true.
- AutoFetchApplicationEmojis
Defines that the client should attempt to fetch application emojis on startup.
Defaults to false.
- AutoFetchSkuIds
Whether to autofetch the sku ids.
Mutually exclusive to SkuId.
- AutoRefreshChannelCache
Refresh full guild channel cache.
Defaults to false.
- MessageCacheSize
Sets the size of the global message cache.
Setting this to 0 will disable message caching entirely.
Defaults to 1024.
- PresenceCacheSize
Sets the maximum number of cached presence entries.
This affects GetPresences(ulong) and Presences because both read from the centralized presence store.
When the cap is exceeded, the oldest cached presence entries are evicted. Set to 0 to disable the cap. Defaults to 0.
- SkuId
The applications sku id for premium apps.
Mutually exclusive to AutoFetchSkuIds.