Documentation ¶
Index ¶
- type Commands
- func (c *Commands) CreateCustomEmbed(embedData *models.CustomEmbed) *discordgo.MessageEmbed
- func (c *Commands) CreateDefinedEmbed(title string, desc string, status string, user *discordgo.User) *discordgo.MessageEmbed
- func (c *Commands) ProcessCommand(s *discordgo.Session, m *discordgo.MessageCreate) error
- func (c *Commands) ProcessMessage(s *discordgo.Session, m interface{})
- func (c *Commands) ProcessMessageDelete(s *discordgo.Session, m *discordgo.MessageDelete) error
- func (c *Commands) ProcessMessageDeleteBulk(s *discordgo.Session, m *discordgo.MessageDeleteBulk) error
- func (c *Commands) ProcessUserJoin(s *discordgo.Session, m *discordgo.GuildMemberAdd) error
- func (c *Commands) RegisterCommand(name string, description string, adminonly bool, handler ScuzzyHandler)
- func (c *Commands) RegisterHandlers()
- type ScuzzyCommand
- type ScuzzyHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commands ¶
type Commands struct { Token string Permissions *permissions.Permissions Config *models.Configuration ScuzzyCommands map[string]ScuzzyCommand ScuzzyCommandsByIndex map[int]ScuzzyCommand }
func (*Commands) CreateCustomEmbed ¶
func (c *Commands) CreateCustomEmbed(embedData *models.CustomEmbed) *discordgo.MessageEmbed
func (*Commands) CreateDefinedEmbed ¶
func (*Commands) ProcessCommand ¶
func (*Commands) ProcessMessage ¶
func (*Commands) ProcessMessageDelete ¶
func (*Commands) ProcessMessageDeleteBulk ¶
func (*Commands) ProcessUserJoin ¶
func (*Commands) RegisterCommand ¶
func (c *Commands) RegisterCommand(name string, description string, adminonly bool, handler ScuzzyHandler)
func (*Commands) RegisterHandlers ¶
func (c *Commands) RegisterHandlers()
type ScuzzyCommand ¶
type ScuzzyCommand struct { Index int Name string Description string AdminOnly bool Handler ScuzzyHandler }
type ScuzzyHandler ¶
type ScuzzyHandler func(session *discordgo.Session, m *discordgo.MessageCreate) error
Click to show internal directories.
Click to hide internal directories.