commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsList = map[string]cmdtypes.Command{

	"ping": cmdgeneral.Ping{
		Name:        "ping",
		Description: "Check if the bot is alive",
		Options:     []discord.ApplicationCommandOption{},
		Category:    cmdtypes.CategoryGeneral,
	},

	"get": cmdrules.Get{
		Name:        "get",
		Description: "Get the YAML source of a given rule name",
		Options: []discord.ApplicationCommandOption{
			discord.ApplicationCommandOptionString{
				Name:        "name",
				Description: "The unique rule name",
				Required:    true,
			},
		},
		Category: cmdtypes.CategoryRules,
	},
}

Functions

func PrepareCommandCreateData

func PrepareCommandCreateData() []discord.ApplicationCommandCreate

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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