commandMap

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func New

func New() *Map

noinspection ALL

func (*Map) CanExecute

func (m *Map) CanExecute(name string) bool

func (*Map) CanRegisterCommand

func (m *Map) CanRegisterCommand(name string) bool

func (*Map) CanRegisterGroup

func (m *Map) CanRegisterGroup(name string) bool

func (*Map) DoesGroupExist

func (m *Map) DoesGroupExist(name string) bool

func (*Map) Execute

func (m *Map) Execute(command string, c ctx.Ctx, s *discordgo.Session) error

func (*Map) GetAllCommands

func (m *Map) GetAllCommands() map[string]command.Command

func (*Map) GetCommands

func (m *Map) GetCommands() map[string]command.Command

func (*Map) GetGroup

func (m *Map) GetGroup(name string) commandGroup.Group

func (*Map) GetGroups

func (m *Map) GetGroups() map[string]commandGroup.Group

func (*Map) RegisterCommand

func (m *Map) RegisterCommand(name string, command command.Command, override bool)

func (*Map) RegisterCommandGroup

func (m *Map) RegisterCommandGroup(name string, group commandGroup.Group)

Jump to

Keyboard shortcuts

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