handler

package
v0.0.0-...-fb5ee28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(guildId string)

Types

type CmdHandler

type CmdHandler func(*discordgo.Session, *discordgo.InteractionCreate)

func GetCommandHandler

func GetCommandHandler(commandName string) CmdHandler

type CommandHandler

type CommandHandler func(*parser.MessageParser) error

type CommandPair

type CommandPair struct {
	Name    string
	Command CommandHandler
}

Jump to

Keyboard shortcuts

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