Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutableCommand ¶
type ExecutableCommand interface { // Metadata returns command metadata: name, description, etc. Metadata() *Metadata // Execute executes the command. Execute(ctx context.Context, args []string, guild *bot.AttachedGuild) (*FeedbackAction, error) // Help gives users an explanatory notice on how to use the command. Help(invokedAs string, guild *bot.AttachedGuild) *FeedbackAction }
ExecutableCommand is an interface that makes a bot command executable.
type FeedbackAction ¶
type FeedbackAction struct {
Message *discordgo.MessageSend
}
FeedbackAction is a union type that contains a form of feedback to send to the user, such as a text message, or a reaction emoji. An empty FeedbackAction value can be used if no feedback is needed.
Click to show internal directories.
Click to hide internal directories.