Documentation
¶
Index ¶
- type Command
- type CommandContext
- func (c *CommandContext) AboutHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
- func (c *CommandContext) AskCLIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
- func (c *CommandContext) AskGUIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
- func (c *CommandContext) GetCommands(staffRole string, slowmodeSeconds int64) []Command
- func (c *CommandContext) RememberCLIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
- func (c *CommandContext) RememberGUIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
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 (c *CommandContext) AboutHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
func (*CommandContext) AskCLIHandler ¶
func (c *CommandContext) AskCLIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
func (*CommandContext) AskGUIHandler ¶
func (c *CommandContext) AskGUIHandler(s *discordgo.Session, i *discordgo.InteractionCreate) error
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
Click to show internal directories.
Click to hide internal directories.