Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Name string Aliases []string Handler func(CommandContext) SubCommands []Command }
func NewCommand ¶
func NewCommand(name string, aliases []string, handler func(CommandContext)) Command
func (*Command) RegisterSubCommand ¶
type CommandContext ¶
type CommandContext struct { *events.MessageCreate Shard *gateway.Shard Args []string }
type CommandHandler ¶
type CommandHandler struct {
// contains filtered or unexported fields
}
func NewCommandHandler ¶
func NewCommandHandler(sm *gateway.ShardManager, prefixes ...string) *CommandHandler
func (*CommandHandler) RegisterCommand ¶
func (h *CommandHandler) RegisterCommand(cmd Command)
Click to show internal directories.
Click to hide internal directories.