commands

package
v0.0.0-...-bb841d2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Init

func Init()

Init must be run after all 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