commands

package
v0.0.0-...-a41bb07 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	Token                 string
	Permissions           *permissions.Permissions
	Config                *models.Configuration
	ScuzzyCommands        map[string]ScuzzyCommand
	ScuzzyCommandsByIndex map[int]ScuzzyCommand
}

func (*Commands) CreateCustomEmbed

func (c *Commands) CreateCustomEmbed(embedData *models.CustomEmbed) *discordgo.MessageEmbed

func (*Commands) CreateDefinedEmbed

func (c *Commands) CreateDefinedEmbed(title string, desc string, status string, user *discordgo.User) *discordgo.MessageEmbed

func (*Commands) ProcessCommand

func (c *Commands) ProcessCommand(s *discordgo.Session, m *discordgo.MessageCreate) error

func (*Commands) ProcessMessage

func (c *Commands) ProcessMessage(s *discordgo.Session, m interface{})

func (*Commands) ProcessMessageDelete

func (c *Commands) ProcessMessageDelete(s *discordgo.Session, m *discordgo.MessageDelete) error

func (*Commands) ProcessMessageDeleteBulk

func (c *Commands) ProcessMessageDeleteBulk(s *discordgo.Session, m *discordgo.MessageDeleteBulk) error

func (*Commands) ProcessUserJoin

func (c *Commands) ProcessUserJoin(s *discordgo.Session, m *discordgo.GuildMemberAdd) error

func (*Commands) RegisterCommand

func (c *Commands) RegisterCommand(name string, description string, adminonly bool, handler ScuzzyHandler)

func (*Commands) RegisterHandlers

func (c *Commands) RegisterHandlers()

type ScuzzyCommand

type ScuzzyCommand struct {
	Index       int
	Name        string
	Description string
	AdminOnly   bool
	Handler     ScuzzyHandler
}

type ScuzzyHandler

type ScuzzyHandler func(session *discordgo.Session, m *discordgo.MessageCreate) error

Jump to

Keyboard shortcuts

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