Documentation ¶
Index ¶
- Variables
- func CommandOption(ops []*discordgo.ApplicationCommandInteractionDataOption, name string) *discordgo.ApplicationCommandInteractionDataOption
- func ComponentParam(customID string, param int) string
- type FlairingHandler
- type InteractionHandler
- type InteractionRouter
- type PlanningHandler
- func (h PlanningHandler) CancelEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
- func (h PlanningHandler) JoinEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
- func (h PlanningHandler) LeaveEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
- func (h PlanningHandler) PlanEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyRegistered = errors.New("interaction is already registered")
Functions ¶
func CommandOption ¶
func CommandOption(ops []*discordgo.ApplicationCommandInteractionDataOption, name string) *discordgo.ApplicationCommandInteractionDataOption
func ComponentParam ¶
Types ¶
type FlairingHandler ¶
type FlairingHandler struct {
// contains filtered or unexported fields
}
type InteractionHandler ¶
type InteractionHandler func(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
type InteractionRouter ¶
type InteractionRouter struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(p planning.PlanningService, f flairing.FlairingService) *InteractionRouter
func (*InteractionRouter) ApplicationCommand ¶
func (r *InteractionRouter) ApplicationCommand(name string, handler InteractionHandler) error
func (*InteractionRouter) HandleInteraction ¶
func (r *InteractionRouter) HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*InteractionRouter) MessageComponent ¶
func (r *InteractionRouter) MessageComponent(pattern string, handler InteractionHandler) error
type PlanningHandler ¶
type PlanningHandler struct {
// contains filtered or unexported fields
}
func (PlanningHandler) CancelEvent ¶
func (h PlanningHandler) CancelEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
func (PlanningHandler) JoinEvent ¶
func (h PlanningHandler) JoinEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
func (PlanningHandler) LeaveEvent ¶
func (h PlanningHandler) LeaveEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
func (PlanningHandler) PlanEvent ¶
func (h PlanningHandler) PlanEvent(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
Click to show internal directories.
Click to hide internal directories.