Documentation ¶
Index ¶
- Variables
- func HandleUpdateAutoroles(event *pubsub.Event)
- func KeyGeneral(guildID int64) string
- func KeyProcessing(guildID int64) string
- func RedisKeyGuildChunkProecssing(gID int64) string
- func RegisterPlugin()
- func WorkingOnFullScan(guildID int64) bool
- type CacheKey
- type Form
- type GeneralConfig
- type Plugin
- func (p *Plugin) AddCommands()
- func (p *Plugin) BotInit()
- func (p *Plugin) InitInternalAPIRoutes(mux *goji.Mux)
- 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) StopBot(wg *sync.WaitGroup)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyProcessingFullGuild = errors.New("Already processing users on this guild")
Functions ¶
func HandleUpdateAutoroles ¶ added in v1.4.1
Stop updating
func KeyGeneral ¶
func KeyProcessing ¶
func RedisKeyGuildChunkProecssing ¶ added in v1.6.0
func RegisterPlugin ¶
func RegisterPlugin()
func WorkingOnFullScan ¶ added in v1.6.0
Types ¶
type Form ¶
type Form struct {
GeneralConfig `valid:"traverse"`
}
type GeneralConfig ¶
type GeneralConfig struct { Role int64 `json:",string" valid:"role,true"` RequiredDuration int RequiredRoles []int64 `valid:"role,true"` IgnoreRoles []int64 `valid:"role,true"` OnlyOnJoin bool }
func GetGeneralConfig ¶
func GetGeneralConfig(guildID int64) (*GeneralConfig, error)
func GuildCacheGetGeneralConfig ¶ added in v1.8.0
func GuildCacheGetGeneralConfig(gs *dstate.GuildState) (*GeneralConfig, error)
func (*GeneralConfig) CanAssignTo ¶
func (conf *GeneralConfig) CanAssignTo(currentRoles []int64, joinedAt time.Time) bool
type Plugin ¶
type Plugin struct{}
func (*Plugin) AddCommands ¶ added in v1.4.1
func (p *Plugin) AddCommands()
func (*Plugin) InitInternalAPIRoutes ¶ added in v1.24.6
func (p *Plugin) InitInternalAPIRoutes(mux *goji.Mux)
func (*Plugin) LoadServerHomeWidget ¶ added in v1.17.0
func (p *Plugin) LoadServerHomeWidget(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func (*Plugin) PluginInfo ¶ added in v1.17.0
func (p *Plugin) PluginInfo() *common.PluginInfo
Click to show internal directories.
Click to hide internal directories.