Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCustomID ¶
func ToApplicationCommand ¶
func ToApplicationCommand(h Handler) *discordgo.ApplicationCommand
func UserID ¶
func UserID(i *discordgo.InteractionCreate) string
Types ¶
type Handler ¶
type Handler interface {
Name() string
Handle(s *discordgo.Session, i *discordgo.InteractionCreate) error
}
func NewSubscribe ¶
func NewUnsubscribe ¶
type Subscribe ¶
type Subscribe struct {
// contains filtered or unexported fields
}
func (*Subscribe) Description ¶
func (*Subscribe) Options ¶
func (cmd *Subscribe) Options() []*discordgo.ApplicationCommandOption
type Subscriptions ¶
type Subscriptions struct {
// contains filtered or unexported fields
}
func (*Subscriptions) Description ¶
func (cmd *Subscriptions) Description() string
func (*Subscriptions) Handle ¶
func (cmd *Subscriptions) Handle(s *discordgo.Session, i *discordgo.InteractionCreate) error
func (*Subscriptions) Name ¶
func (cmd *Subscriptions) Name() string
type Unsubscribe ¶
type Unsubscribe struct {
// contains filtered or unexported fields
}
func (*Unsubscribe) Description ¶
func (cmd *Unsubscribe) Description() string
func (*Unsubscribe) Handle ¶
func (cmd *Unsubscribe) Handle(s *discordgo.Session, i *discordgo.InteractionCreate) error
func (*Unsubscribe) Name ¶
func (cmd *Unsubscribe) Name() string
Click to show internal directories.
Click to hide internal directories.