Versions in this module Expand all Collapse all v1 v1.24.19 Mar 7, 2021 Changes in this version + func CheckPresenceSparse(client radix.Client, config *Config, p *discordgo.Presence, ...) error type Plugin + func (p *Plugin) AllFeatureFlags() []string + func (p *Plugin) UpdateFeatureFlags(guildID int64) ([]string, error) v1.20.6 Sep 3, 2019 Changes in this version + var DefaultConfig = &Config + func CheckGuildFull(gs *dstate.GuildState, fetchMembers bool) + func CheckPresence(client radix.Client, config *Config, ms *dstate.MemberState, ...) error + func DisableStreamingRole(guildID int64) + func GiveStreamingRole(ms *dstate.MemberState, role int64, guild *discordgo.Guild) + func HandleGuildCreate(evt *eventsystem.EventData) + func HandleGuildMemberUpdate(evt *eventsystem.EventData) (retry bool, err error) + func HandlePostStreaming(w http.ResponseWriter, r *http.Request) interface + func HandlePresenceUpdate(evt *eventsystem.EventData) (retry bool, err error) + func HandleUpdateStreaming(event *pubsub.Event) + func KeyCurrentlyStreaming(gID int64) string + func RegisterPlugin() + func RemoveStreaming(client radix.Client, config *Config, guildID int64, ms *dstate.MemberState) + func RemoveStreamingRole(ms *dstate.MemberState, role int64, guildID int64) + func SendStreamingAnnouncement(config *Config, guild *dstate.GuildState, ms *dstate.MemberState) + type CacheKey int + const CacheKeyConfig + type ConextKey int + const ConextKeyConfig + type Config struct + AnnounceChannel int64 + AnnounceMessage string + Enabled bool + GameRegex string + GiveRole int64 + IgnoreRole int64 + RequireRole int64 + TitleRegex string + func BotCachedGetConfig(gs *dstate.GuildState) (*Config, error) + func GetConfig(guildID int64) (*Config, error) + func (c *Config) Save(guildID int64) error + func (c *Config) UnmarshalJSON(b []byte) error + func (config *Config) MeetsRequirements(ms *dstate.MemberState) bool + type LegacyConfig struct + AnnounceChannel string + AnnounceMessage string + Enabled bool + GameRegex string + GiveRole string + IgnoreRole string + RequireRole string + TitleRegex string + type Plugin struct + func (p *Plugin) BotInit() + func (p *Plugin) InitWeb() + func (p *Plugin) LoadServerHomeWidget(w http.ResponseWriter, r *http.Request) (web.TemplateData, error) + func (p *Plugin) PluginInfo() *common.PluginInfo + func (p *Plugin) ServerHomeWidgetApplyMiddlewares(inner http.Handler) http.Handler + func (p *Plugin) ShardMigrationReceive(evt dshardorchestrator.EventType, data interface{})