Skip to main content

[NodeMod Core]

/ .. / CommandOptions

Interface: CommandOptions

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

Configuration options for registering a command.

Properties

name

name: string

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

The command name (without prefix)

type

type: "console" | "client" | "server"

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

Whether this is a client, server, or console command

handler

handler: CommandHandler | ClientCommandHandler | ServerCommandHandler

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

The handler function to execute when the command is invoked