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 DefaultPermissions *int64 Options []*discordgo.ApplicationCommandOption Handler func(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error) }
func (*Command) ApplicationCommand ¶
func (c *Command) ApplicationCommand() *discordgo.ApplicationCommand
type CommandHandler ¶
type CommandHandler struct {
// contains filtered or unexported fields
}
func NewCommandHandler ¶
func (*CommandHandler) Deinit ¶
func (c *CommandHandler) Deinit() error
func (*CommandHandler) Handle ¶
func (c *CommandHandler) Handle(s *discordgo.Session, i *discordgo.InteractionCreate) (*discordgo.InteractionResponse, error)
func (*CommandHandler) Init ¶
func (c *CommandHandler) Init() error
func (*CommandHandler) Register ¶
func (c *CommandHandler) Register(commands ...*Command)
Register registers commands Make sure to register commands before starting the service
Click to show internal directories.
Click to hide internal directories.