Documentation ¶
Index ¶
- type Handler
- func (h *Handler) HandleMessage(s *discordgo.Session, m *discordgo.MessageCreate)
- func (h *Handler) HandleMessageDelete(s *discordgo.Session, m *discordgo.MessageDelete)
- func (h *Handler) HandleMessageUpdate(s *discordgo.Session, m *discordgo.MessageUpdate)
- func (h *Handler) HandleReady(s *discordgo.Session, r *discordgo.Ready)
- func (h *Handler) HandleResumed(s *discordgo.Session, r *discordgo.Resumed)
- func (h *Handler) LoadCommands(strictMode bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Bot *bot.Bot CommandMap map[string]*command.Command // contains filtered or unexported fields }
Handler of commands
func (*Handler) HandleMessage ¶
func (h *Handler) HandleMessage(s *discordgo.Session, m *discordgo.MessageCreate)
HandleMessage handles new message event
func (*Handler) HandleMessageDelete ¶
func (h *Handler) HandleMessageDelete(s *discordgo.Session, m *discordgo.MessageDelete)
HandleMessageDelete handles message delete event
func (*Handler) HandleMessageUpdate ¶
func (h *Handler) HandleMessageUpdate(s *discordgo.Session, m *discordgo.MessageUpdate)
Handles message update event
func (*Handler) HandleReady ¶
HandleReady handles ready event
func (*Handler) HandleResumed ¶
HandleResumed handles discord REsumed event
func (*Handler) LoadCommands ¶
LoadCommands builds commands and links aliases with command pointers in CommandHandler.CommandMap
Click to show internal directories.
Click to hide internal directories.