Class: CommandStore
Defined in: projects/framework/src/lib/structures/CommandStore.ts:18
Stores all Command pieces
Since
1.0.0
Extends
AliasStore
<Command
,"commands"
>
Constructors
new CommandStore()
new CommandStore():
CommandStore
Defined in: projects/framework/src/lib/structures/CommandStore.ts:19
Returns
Overrides
AliasStore<Command, 'commands'>.constructor
Accessors
categories
Get Signature
get categories():
string
[]
Defined in: projects/framework/src/lib/structures/CommandStore.ts:26
Get all the command categories.
Returns
string
[]
Methods
loadAll()
loadAll():
Promise
<void
>
Defined in: projects/framework/src/lib/structures/CommandStore.ts:56
Loads all pieces from all directories specified by paths.
Returns
Promise
<void
>
Overrides
AliasStore.loadAll
unload()
Defined in: projects/framework/src/lib/structures/CommandStore.ts:32
Unloads a piece given its instance or its name, and removes all the aliases.
Parameters
Parameter | Type | Description |
---|---|---|
name | string | Command | The name of the file to load. |
Returns
Returns the piece that was unloaded.
Overrides
AliasStore.unload