Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandHandlers = []CommandHandler{ &DeleteHandler{}, &LiveHandler{}, &PriceHandler{}, &AskHandler{}, }
Functions ¶
Types ¶
type AskHandler ¶
type AskHandler struct{}
func (*AskHandler) Command ¶
func (h *AskHandler) Command() *discordgo.ApplicationCommand
func (*AskHandler) Handler ¶
func (h *AskHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
type CommandHandler ¶
type CommandHandler interface {
Command() *discordgo.ApplicationCommand
Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
}
type DeleteHandler ¶
type DeleteHandler struct{}
func (*DeleteHandler) Command ¶
func (h *DeleteHandler) Command() *discordgo.ApplicationCommand
func (*DeleteHandler) Handler ¶
func (h *DeleteHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
type Event ¶
type Event struct {
ID string `json:"id"`
Object string `json:"object"`
Created int `json:"created"`
Model string `json:"model"`
Choices []struct {
Index int `json:"index"`
Delta struct {
Role string `json:"role"`
Content string `json:"content"`
} `json:"delta"`
FinishReason interface{} `json:"finish_reason"`
} `json:"choices"`
}
type LiveHandler ¶
type LiveHandler struct{}
func (*LiveHandler) Command ¶
func (h *LiveHandler) Command() *discordgo.ApplicationCommand
func (*LiveHandler) Handler ¶
func (h *LiveHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
type PriceHandler ¶
type PriceHandler struct{}
func (*PriceHandler) Command ¶
func (h *PriceHandler) Command() *discordgo.ApplicationCommand
func (*PriceHandler) Handler ¶
func (h *PriceHandler) Handler(s *discordgo.Session, i *discordgo.InteractionCreate)
Click to show internal directories.
Click to hide internal directories.