commands

package
v0.0.0-...-a06978c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(cmd Command)

func RegisterStorage

func RegisterStorage(s storage2.Storage)

Types

type Command

type Command struct {
	Command     string
	Desc        string
	NSFW        bool
	Alias       bool
	Func        CommandFunc
	HelpFunc    HelpFunc
	Permissions int
}

func GetCommand

func GetCommand(cmd string) (*Command, error)

func GetCommands

func GetCommands() []Command

type CommandFunc

type CommandFunc func(s *discordgo.Session, c *discordgo.Channel, m *discordgo.MessageCreate, args []string, config *datasets.Entity, command Command) error

type HelpFunc

type HelpFunc func() *discordgo.MessageEmbed

Jump to

Keyboard shortcuts

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