Documentation
¶
Overview ¶
Package cc contains types and functions for generating static commands from JSON files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { // The first name is used as the bcr Command name, the others are used as aliases. Names []string `json:"names"` Summary string `json:"summary"` Description string `json:"description"` Hidden bool `json:"hidden"` Response struct { Content string `json:"content"` Embed *discord.Embed `json:"embed"` } `json:"response"` }
Command is a single command, able to be serialized as JSON.
func (Command) ToBcrCommand ¶
ToBcrCommand converts a Command into a bcr Command.
Click to show internal directories.
Click to hide internal directories.