MetaModule

package
v0.0.0-...-06d5ffc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logging.Logger
)

Functions

This section is empty.

Types

type MetaCommand

type MetaCommand struct {
	// contains filtered or unexported fields
}

func (MetaCommand) Aliases

func (cc MetaCommand) Aliases() []string

func (MetaCommand) Description

func (cc MetaCommand) Description() string

func (MetaCommand) Name

func (cc MetaCommand) Name() string

func (MetaCommand) Permission

func (cc MetaCommand) Permission() int

func (MetaCommand) Usage

func (cc MetaCommand) Usage() string

type MetaModule

type MetaModule struct {
	Bot      *Bot.Bot
	Commands []MetaCommand
}

func New

func New(bot *Bot.Bot, l *logging.Logger) (c *MetaModule)

func (*MetaModule) CommandInfo

func (c *MetaModule) CommandInfo(name string, data *Bot.ServerData) (response *Bot.Embed, found bool)

func (*MetaModule) Execute

func (c *MetaModule) Execute(s *discordgo.Session, m *discordgo.MessageCreate, data *Bot.ServerData)

func (*MetaModule) HelpFields

func (c *MetaModule) HelpFields() (title string, content string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL