CoreModule

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: 18 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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