commandmap

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdMap

type CmdMap interface {
	Execute(command string, ctx ctx.Ctx, s *discordgo.Session) error
	RegisterCommand(name string, command command.Command, override bool)
	CanRegisterCommand(name string) bool
	GetCommands() map[string]command.Command
	CanExecute(name string) bool
}

type Map

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

func New

func New() Map

func (Map) CanExecute added in v0.1.1

func (m Map) CanExecute(name string) bool

func (Map) CanRegisterCommand

func (m Map) CanRegisterCommand(name string) bool

func (Map) Execute

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

func (Map) GetCommands

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

func (Map) RegisterCommand

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

Jump to

Keyboard shortcuts

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