handlers

package
v0.0.0-...-140db51 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Command() string
	ChatID() string
	Handle(s *discordgo.Session, m *discordgo.MessageCreate)
}

type HandlerManager

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

func NewHandlerManager

func NewHandlerManager(botID, prefix string) *HandlerManager

func (*HandlerManager) AddHandler

func (hm *HandlerManager) AddHandler(handler Handler)

func (*HandlerManager) RegisterHandlers

func (hm *HandlerManager) RegisterHandlers(s *discordgo.Session, m *discordgo.MessageCreate)

Jump to

Keyboard shortcuts

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