dgcmd

package module
v0.0.0-...-4eb1924 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 4 Imported by: 0

README

dg-commands

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args []string

func (Args) Joined

func (a Args) Joined() string

type Command

type Command struct {
	Names     []string
	Usage     string
	Validator func([]string) error
	Callback  func(s *discordgo.Session, m *discordgo.MessageCreate, args Args)
}

type Handler

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

func NewHandler

func NewHandler(s *discordgo.Session, p string) *Handler

func (*Handler) Add

func (h *Handler) Add(c *Command) error

Jump to

Keyboard shortcuts

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