Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
NameCmd func() string
MatchCmd func(path []string) bool
ExecuteCmd func(s *discordgo.Session, m *discordgo.MessageCreate, path []string) error
}
type CommandGroup ¶
type CommandGroup struct {
Commands map[string]Cmd
DefaultComnmnd Cmd
MatchCmd func(path []string) bool
NameCmd func() string
}
func (*CommandGroup) Execute ¶
func (c *CommandGroup) Execute(s *discordgo.Session, m *discordgo.MessageCreate, path []string) error
func (*CommandGroup) Match ¶
func (c *CommandGroup) Match(path []string) bool
func (*CommandGroup) Name ¶
func (c *CommandGroup) Name() string
Click to show internal directories.
Click to hide internal directories.