Skip to main content

Class: CommandStore

Stores all Command pieces

Since

1.0.0

Extends

Constructors

new CommandStore()

new CommandStore(): CommandStore

Returns

CommandStore

Overrides

AliasStore<Command, 'commands'>.constructor

Source

projects/framework/src/lib/structures/CommandStore.ts:19

Accessors

categories

get categories(): string[]

Get all the command categories.

Returns

string[]

Source

projects/framework/src/lib/structures/CommandStore.ts:26

Methods

loadAll()

loadAll(): Promise<void>

Returns

Promise<void>

Overrides

AliasStore.loadAll

Source

projects/framework/src/lib/structures/CommandStore.ts:56


unload()

unload(name: string | Command <Args, CommandOptions>): Promise <Command <Args, CommandOptions>>

Parameters

ParameterType
namestring | Command <Args, CommandOptions>

Returns

Promise <Command <Args, CommandOptions>>

Overrides

AliasStore.unload

Source

projects/framework/src/lib/structures/CommandStore.ts:32