Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultGroupSyncRoleColor = "#9B59B6"
Variables ¶
View Source
var Modules = map[string]NewModuleFunc{}
Functions ¶
This section is empty.
Types ¶
type BaseModule ¶
type BaseModule struct {
// contains filtered or unexported fields
}
type GroupSync ¶
type GroupSync struct { *BaseModule // contains filtered or unexported fields }
func (*GroupSync) Run ¶
func (g *GroupSync) Run(settings *users.DiscordSyncSettings) ([]*discordgo.MessageEmbed, error)
type GroupSyncUser ¶
type Module ¶
type Module interface {
Run(settings *users.DiscordSyncSettings) ([]*discordgo.MessageEmbed, error)
}
func NewGroupSync ¶
func NewGroupSync(base *BaseModule) (Module, error)
func NewUserInfo ¶
func NewUserInfo(base *BaseModule) (Module, error)
type NewModuleFunc ¶
type NewModuleFunc func(*BaseModule) (Module, error)
type UserInfo ¶
type UserInfo struct { *BaseModule // contains filtered or unexported fields }
func (*UserInfo) Run ¶
func (g *UserInfo) Run(settings *pbusers.DiscordSyncSettings) ([]*discordgo.MessageEmbed, error)
type UserRoleMapping ¶ added in v0.8.11
type UserRoleMapping struct { AccountID uint64 `alias:"account_id"` ExternalID string `alias:"external_id"` JobGrade int32 `alias:"job_grade"` Firstname string `alias:"firstname"` Lastname string `alias:"lastname"` Job string `alias:"job"` AbsenceBegin *timestamp.Timestamp `alias:"absence_begin"` AbsenceEnd *timestamp.Timestamp `alias:"absence_end"` }
Click to show internal directories.
Click to hide internal directories.