commands.CommandApplication

interface CommandApplication

A command registry created for one script. Register commands at module scope. Slash and context-menu definitions are synchronized when the deployment is published; prefix commands are matched only by the running script.

exported from lib.weeble.d

Extends:

Properties

CommandApplication.menu

type: readonly { message: ; user: ; }

Methods

CommandApplication.list() { aliases: string[]; description?: string; kind: “slash” | “prefix” | “menu”; name: string; path: string[]; }[]
CommandApplication.prefix<TSchema>(
config: PrefixConfig<TSchema>,
handler: (message: GuildMemberMessage, args: InferArguments<TSchema>) => Promise<unknown>
) { name: string; }
Type parameters:

TSchema – (extends ArgumentMap)