Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomBot ¶
type CustomBot struct { Presence CustomBotPresence `json:"status"` Session *discordgo.Session }
func NewCustomBot ¶
func NewCustomBot(token string, presence CustomBotPresence) (*CustomBot, error)
func (*CustomBot) UpdatePresence ¶
func (b *CustomBot) UpdatePresence(p CustomBotPresence)
type CustomBotManager ¶
type CustomBotManager struct {
// contains filtered or unexported fields
}
func NewCustomBotManager ¶
func NewCustomBotManager(pg *postgres.PostgresStore, actionHandler *handler.ActionHandler) *CustomBotManager
type CustomBotPresence ¶
type CustomBotPresence struct { Status string `json:"status"` ActivityType null.Int `json:"activity_type"` ActivityName null.String `json:"activity_name"` ActivityState null.String `json:"activity_state"` ActivityURL null.String `json:"activity_url"` }
func (CustomBotPresence) Activity ¶
func (p CustomBotPresence) Activity() discordgo.Activity
Click to show internal directories.
Click to hide internal directories.