Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(conf CacheConfig) disgord.Cache
NewCache is used to create a new cache.
Types ¶
type CacheConfig ¶
type CacheConfig struct { DoNotReturnGetGuildMembers bool UserMaxItems int UserMaxBytes int UserDuration time.Duration VoiceStatesMaxItems int VoiceStatesMaxBytes int VoiceStatesDuration time.Duration GuildMaxItems int GuildMaxBytes int GuildDuration time.Duration }
CacheConfig is used to define the cache configuration.
Click to show internal directories.
Click to hide internal directories.