Versions in this module Expand all Collapse all v1 v1.2.0 Nov 24, 2021 Changes in this version + func ArgsSplitter(in string) []string + type CCConfig struct + HelpEmbedColour *int + HelpEmbedFooterText *string + Prefix string + Token string + URL *string + type Command struct + Handler CommandHandler + Help string + type CommandGroup interface + OnBotClose func() error + OnGuildJoin func(*discordgo.Session, *discordgo.GuildCreate) error + OnGuildLeave func(*discordgo.Session, *discordgo.GuildDelete) error + OnReaction func(*discordgo.Session, interface{}) error + type CommandGroupContainer struct + type CommandHandler func(*MessageContext, []string) error + type Commander struct + OnError func(error) + func NewCommander(config *CCConfig) (*Commander, error) + func (c *Commander) Close() + func (c *Commander) GetPlugin(name string) (interface{}, error) + func (c *Commander) HandleError(f func(error)) + func (c *Commander) Help(m *MessageContext, args []string) error + func (c *Commander) LoadPlugin(name string) error + func (c *Commander) Open() error + func (c *Commander) RegisterCommand(groupName string) func(activator string, handler CommandHandler, help string) error + func (c *Commander) SetupPlugin(...) + type GetPlugin func(string) (interface{}, error) + type MessageContext struct + func (c *MessageContext) React(add bool, channelID string, messageID string, emoji string) error + func (c *MessageContext) Send(data interface{}) (*discordgo.Message, error) + func (c *MessageContext) SendTo(channelID string, data interface{}) (*discordgo.Message, error) + type RegisterCommand func(string, CommandHandler, string) error Other modules containing this package gitlab.com/crius-bots/criuscommander/v2