Documentation ¶
Index ¶
- func About(s *discordgo.Session, dm *discordgo.Message)
- func Help(s *discordgo.Session, dm *discordgo.Message)
- type Command
- type CommandCollection
- type CommandRoutine
- type Context
- type Mux
- func (m *Mux) MessageCreate(ds *discordgo.Session, mc *discordgo.MessageCreate)
- func (m *Mux) PermissionChecker(userPerm []string, channelID string) bool
- func (m *Mux) RegisterCommand(name, help string, cmd CommandRoutine, perm Permissions)
- func (m *Mux) SearchForCommand(msg string, userPerm []string, channelID string) *Command
- type Permissions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { Name string Run CommandRoutine Help string }
type CommandCollection ¶
type CommandCollection struct { Commands []*Command Flag Permissions }
type Mux ¶
type Mux struct { Collection CommandCollection Pattern string }
func (*Mux) MessageCreate ¶
func (m *Mux) MessageCreate(ds *discordgo.Session, mc *discordgo.MessageCreate)
func (*Mux) PermissionChecker ¶
func (*Mux) RegisterCommand ¶
func (m *Mux) RegisterCommand(name, help string, cmd CommandRoutine, perm Permissions)
type Permissions ¶
Click to show internal directories.
Click to hide internal directories.