Documentation ¶
Index ¶
- Variables
- type CoreCommand
- type CoreModule
- func (c *CoreModule) AddCommandCommand(cmd CoreCommand, s *discordgo.Session, m *discordgo.MessageCreate, ...)
- func (c *CoreModule) CommandInfo(name string, data *Bot.ServerData) (response *Bot.Embed, found bool)
- func (c *CoreModule) DeleteCommandCommand(cmd CoreCommand, s *discordgo.Session, m *discordgo.MessageCreate, ...)
- func (c *CoreModule) Execute(s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)
- func (c *CoreModule) HelpFields() (title string, content string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log *logging.Logger
)
Functions ¶
This section is empty.
Types ¶
type CoreCommand ¶
type CoreCommand struct {
// contains filtered or unexported fields
}
func (CoreCommand) Aliases ¶
func (cc CoreCommand) Aliases() []string
func (CoreCommand) Description ¶
func (cc CoreCommand) Description() string
func (CoreCommand) Name ¶
func (cc CoreCommand) Name() string
func (CoreCommand) Permission ¶
func (cc CoreCommand) Permission() int
func (CoreCommand) Usage ¶
func (cc CoreCommand) Usage() string
type CoreModule ¶
type CoreModule struct { Bot *Bot.Bot Commands []CoreCommand }
func New ¶
func New(bot *Bot.Bot, l *logging.Logger) (c *CoreModule)
func (*CoreModule) AddCommandCommand ¶
func (c *CoreModule) AddCommandCommand(cmd CoreCommand, s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)
func (*CoreModule) CommandInfo ¶
func (c *CoreModule) CommandInfo(name string, data *Bot.ServerData) (response *Bot.Embed, found bool)
func (*CoreModule) DeleteCommandCommand ¶
func (c *CoreModule) DeleteCommandCommand(cmd CoreCommand, s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)
func (*CoreModule) Execute ¶
func (c *CoreModule) Execute(s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)
func (*CoreModule) HelpFields ¶
func (c *CoreModule) HelpFields() (title string, content string)
Click to show internal directories.
Click to hide internal directories.