Documentation
¶
Overview ¶
Package commands handles the command definitions and handler for the bot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandCreate = &command.Definition{ Name: "event", Description: "Manage events", Handler: Create, Options: []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionString, Name: "create", Description: "Create a new event for a specific category", Required: true, Choices: amenities.Choices(), }, }, }
CommandCreate defines the create command.
Functions ¶
Types ¶
type Joke ¶ added in v0.0.2
Joke handler and definition.
func (Joke) Definition ¶ added in v0.0.2
func (j Joke) Definition() *command.Definition
Definition for the joke command.
type Refresh ¶ added in v0.0.3
Refresh handler and definition.
func (Refresh) Definition ¶ added in v0.0.3
func (r Refresh) Definition() *command.Definition
Definition for the refresh command.
type Refresher ¶ added in v0.0.3
type Refresher interface {
Refresh() error
}
A Refresher can be refreshed by the refresh command.
type RoomService ¶ added in v0.0.2
RoomService handler and definition.
func (RoomService) Definition ¶ added in v0.0.2
func (r RoomService) Definition() *command.Definition
Definition for the room service command.
Click to show internal directories.
Click to hide internal directories.