structs

package
v0.0.0-...-235a251 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands []Command

Functions

func CommandExists

func CommandExists(name string) bool

Checks if a command exists. TODO: Make this work with aliases.

Types

type Command

type Command struct {
	Name         string
	Aliases      []string
	Category     string
	Enabled      bool
	ArgsRequired bool
	Hidden       bool
	Run          Runner
}

func GetCommand

func GetCommand(name string) *Command

TODO: Make this work with aliases.

func NewCommand

func NewCommand(name, category string, aliases []string, enabled, argsRequired, hidden bool, f Runner) *Command

Creates a new command object.

type Runner

type Runner func(s *discordgo.Session, m *discordgo.MessageCreate)

Jump to

Keyboard shortcuts

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