commands

package
v0.0.0-...-daa8be9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init()

This must be run after all of the global variables have been set (including ones that frontend init functions might set) since the `Init` functions might depend on them.

Types

type CommandJSON

type CommandJSON struct {
	Names       []string `json:"names"`
	Description string   `json:"description"`
	Example     string   `json:"example"`
	Parent      int      `json:"parent"`
	Children    []int    `json:"children"`
	Category    string   `json:"category"`
}

type Resp

type Resp struct {
	Prefix     string        `json:"prefix"`
	Categories []string      `json:"categories"`
	Commands   []CommandJSON `json:"commands"`
}

func ToJSON

func ToJSON(t core.CommandType) Resp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL