commands

package
v0.0.0-...-b5a25c8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name        string
	Description string
	Handler     func(s *discordgo.Session, i *discordgo.InteractionCreate) error
	Options     []*discordgo.ApplicationCommandOption
	Type        discordgo.ApplicationCommandType
}

type CommandContext

type CommandContext struct {
	AI ai.TwinkleshineAI
}

func (*CommandContext) AboutHandler

func (*CommandContext) AskCLIHandler

func (*CommandContext) AskGUIHandler

func (*CommandContext) GetCommands

func (c *CommandContext) GetCommands(staffRole string, slowmodeSeconds int64) []Command

func (*CommandContext) RememberCLIHandler

func (c *CommandContext) RememberCLIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error

func (*CommandContext) RememberGUIHandler

func (c *CommandContext) RememberGUIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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