Documentation ¶
Index ¶
- func GetCommands() map[string]internal.Command
- func GetFooter() *discordgo.MessageEmbedFooter
- func GetResponse(m *discordgo.MessageCreate, otherwise []string) string
- func GetServer(s *discordgo.Session, m *discordgo.MessageCreate) string
- func New(name, usage, summary string, runner internal.Runner) internal.Command
- func Register(c internal.Command, aliases ...string)
- func RegisterDirects(commands ...internal.Command)
- func Run(command string, args []string, s *discordgo.Session, ...)
- func RunDirect(command string, args []string, s *discordgo.Session, ...)
- func UnregisterDirects(commands ...internal.Command)
- type CommandImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommands ¶
func GetFooter ¶
func GetFooter() *discordgo.MessageEmbedFooter
func GetResponse ¶
func GetResponse(m *discordgo.MessageCreate, otherwise []string) string
func RegisterDirects ¶
func UnregisterDirects ¶
Types ¶
type CommandImpl ¶
type CommandImpl struct {
// contains filtered or unexported fields
}
func (*CommandImpl) Name ¶
func (c *CommandImpl) Name() string
func (*CommandImpl) Run ¶
func (c *CommandImpl) Run(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
func (*CommandImpl) Summary ¶
func (c *CommandImpl) Summary() string
func (*CommandImpl) Usage ¶
func (c *CommandImpl) Usage() string
Click to show internal directories.
Click to hide internal directories.