Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveFromCache ¶
func RemoveFromCache(guildID string)
RemoveFromCache removes a guild from the cache
Types ¶
type Guild ¶
type Guild struct { ID primitive.ObjectID `bson:"_id,omitempty"` DiscordID string `bson:"discordID"` Settings GuildSettings `bson:"settings"` }
Guild represents a bot guild
func RetrieveCached ¶
RetrieveCached retrieves a guild but checks the cache first
type GuildSettings ¶
type GuildSettings struct { CommandChannels []string `bson:"commandChannels"` Starboard GuildStarboardSettings `bson:"starboard"` }
GuildSettings represents the settings for a bot guild
type GuildStarboardSettings ¶
GuildStarboardSettings represents the starboard settings for a guild
Click to show internal directories.
Click to hide internal directories.