Skip to main content

[NodeMod Core]

/ .. / CommandOptions

Interface: CommandOptions

Defined in: src/core/cmd.ts:30

Configuration options for registering a command.

Properties

name

name: string

Defined in: src/core/cmd.ts:32

The command name (without prefix)

type

type: "client" | "server"

Defined in: src/core/cmd.ts:34

Whether this is a client or server command

handler

handler: CommandHandler | ServerCommandHandler

Defined in: src/core/cmd.ts:36

The handler function to execute when the command is invoked