Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigHandler(e *handler.CommandEvent) error
- func ExistsAutocompleteHandler(e *handler.AutocompleteEvent) error
- func ExistsHandler(e *handler.CommandEvent) error
- func OnlineHandler(e *handler.CommandEvent) error
- func TestAutocompleteHandler(e *handler.AutocompleteEvent) error
- func TestHandler(e *handler.CommandEvent) error
- func TimeHandler(e *handler.CommandEvent) error
- func VersionHandler(b *vrcbot.Bot) handler.CommandHandler
- type Command
Constants ¶
View Source
const UserAgent = "VRCGO/0.1 jilwer"
Variables ¶
View Source
var Commands = []Command{ { test, TestHandler, TestAutocompleteHandler, }, { online, OnlineHandler, nil, }, { config, ConfigHandler, nil, }, { time, TimeHandler, nil, }, { exists, ExistsHandler, ExistsAutocompleteHandler, }, }
Functions ¶
func ConfigHandler ¶
func ConfigHandler(e *handler.CommandEvent) error
func ExistsAutocompleteHandler ¶
func ExistsAutocompleteHandler(e *handler.AutocompleteEvent) error
func ExistsHandler ¶
func ExistsHandler(e *handler.CommandEvent) error
func OnlineHandler ¶
func OnlineHandler(e *handler.CommandEvent) error
func TestAutocompleteHandler ¶
func TestAutocompleteHandler(e *handler.AutocompleteEvent) error
func TestHandler ¶
func TestHandler(e *handler.CommandEvent) error
func TimeHandler ¶
func TimeHandler(e *handler.CommandEvent) error
func VersionHandler ¶
func VersionHandler(b *vrcbot.Bot) handler.CommandHandler
Types ¶
type Command ¶
type Command struct { Definition discord.ApplicationCommandCreate Handler handler.CommandHandler AutoCompleteHandler handler.AutocompleteHandler }
Click to show internal directories.
Click to hide internal directories.