commands

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
}

Object is a command returning an object recovered from the context's object map.

func (*Object) Exec

func (c *Object) Exec(ctx shireikan.Context) error

Exec is the commands execution handler.

func (*Object) GetDescription

func (c *Object) GetDescription() string

GetDescription returns the commands description.

func (*Object) GetDomainName

func (c *Object) GetDomainName() string

GetDomainName returns the commands domain name.

func (*Object) GetGroup

func (c *Object) GetGroup() string

GetGroup returns the commands group.

func (*Object) GetHelp

func (c *Object) GetHelp() string

GetHelp returns the commands help text.

func (*Object) GetInvokes

func (c *Object) GetInvokes() []string

GetInvoke returns the command invokes.

func (*Object) GetSubPermissionRules

func (c *Object) GetSubPermissionRules() []shireikan.SubPermission

GetSubPermissionRules returns the commands sub permissions array.

func (*Object) IsExecutableInDMChannels

func (c *Object) IsExecutableInDMChannels() bool

IsExecutableInDMChannels returns whether the command is executable in DM channels.

Jump to

Keyboard shortcuts

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