Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionData ¶
type SessionData struct { Mutex *sync.Mutex XP *xp.System Roles roles.Assigner AntiSpam *antispam.SpamTracker // Plugins: Blacklist *plugs.Blacklist Clear plugs.Eraser Rules *plugs.Agreement // contains filtered or unexported fields }
SessionData holds the data needed to complete the requested transactions
func NewSessionData ¶
func NewSessionData(s *dg.Session) *SessionData
NewSessionData creates a SessionData
func (*SessionData) NewMessage ¶
func (sd *SessionData) NewMessage(s *dg.Session, msg *dg.MessageCreate)
NewMessage waits for a ne message to be sent in a the Discord guild This kicks off a Goroutine to free up the mutex set by discordgo `AddHandler` method.
Click to show internal directories.
Click to hide internal directories.