Documentation ¶
Index ¶
- func HandleAutoroles(w http.ResponseWriter, r *http.Request) interface{}
- func HandlePresenceUpdate(evt *eventsystem.EventData)
- func HandleUpdateAutoroles(event *pubsub.Event)
- func KeyGeneral(guildID int64) string
- func KeyProcessing(guildID int64) string
- func OnMemberJoin(evt *eventsystem.EventData)
- func RegisterPlugin()
- type Form
- type GeneralConfig
- type LegacyGeneralConfig
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAutoroles ¶
func HandleAutoroles(w http.ResponseWriter, r *http.Request) interface{}
func HandlePresenceUpdate ¶
func HandlePresenceUpdate(evt *eventsystem.EventData)
HandlePresenceUpdate makes sure the member with joined_at is available for the relevant guilds TODO: Figure out a solution that scales better
func HandleUpdateAutoroles ¶ added in v1.4.1
Stop updating
func KeyGeneral ¶
func KeyProcessing ¶
func OnMemberJoin ¶
func OnMemberJoin(evt *eventsystem.EventData)
func RegisterPlugin ¶
func RegisterPlugin()
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 (*GeneralConfig) CanAssignTo ¶
func (conf *GeneralConfig) CanAssignTo(ms *dstate.MemberState) bool
func (*GeneralConfig) UnmarshalJSON ¶
func (l *GeneralConfig) UnmarshalJSON(b []byte) error
type LegacyGeneralConfig ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) AddCommands ¶ added in v1.4.1
func (p *Plugin) AddCommands()
func (*Plugin) BotStarted ¶ added in v1.4.1
func (p *Plugin) BotStarted()
Click to show internal directories.
Click to hide internal directories.