Skip to main content

Class: CommandStore

Hierarchy

Constructors

constructor

new CommandStore()

Overrides

AliasStore.constructor

Defined in

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

Properties

Constructor

Readonly Constructor: AbstractConstructor<Command<Args, CommandOptions>>

Inherited from

AliasStore.Constructor

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:284


[toStringTag]

Readonly [toStringTag]: string

Inherited from

AliasStore.[toStringTag]

Defined in

node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:135


aliases

Readonly aliases: Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.aliases

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:709


constructor

constructor: CollectionConstructor

Inherited from

AliasStore.constructor

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:21


name

Readonly name: string

Inherited from

AliasStore.name

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:285


paths

Readonly paths: Set<string>

Inherited from

AliasStore.paths

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:286


size

Readonly size: number

Inherited from

AliasStore.size

Defined in

node_modules/typescript/lib/lib.es2015.collection.d.ts:48


strategy

Readonly strategy: ILoaderStrategy<Command<Args, CommandOptions>>

Inherited from

AliasStore.strategy

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:287


[species]

Static Readonly [species]: MapConstructor

Inherited from

AliasStore.[species]

Defined in

node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:317


defaultStrategy

Static defaultStrategy: ILoaderStrategy<any>

Inherited from

AliasStore.defaultStrategy

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:372


logger

Static logger: null | StoreLogger

Inherited from

AliasStore.logger

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:376

Accessors

categories

get categories(): string[]

Returns

string[]

Defined in

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


container

get container(): Container

Returns

Container

Inherited from

AliasStore.container

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:297

Methods

[iterator]

[iterator](): IterableIterator<[string, Command<Args, CommandOptions>]>

Returns

IterableIterator<[string, Command<Args, CommandOptions>]>

Inherited from

AliasStore.[iterator]

Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:121


at

at(index): undefined | Command<Args, CommandOptions>

Parameters

NameTypeDescription
indexnumber

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.at

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:98


clear

clear(): void

Returns

void

Inherited from

AliasStore.clear

Defined in

node_modules/typescript/lib/lib.es2015.collection.d.ts:23


clone

clone(): Collection<string, Command<Args, CommandOptions>>

Returns

Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.clone

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:328


concat

concat(...collections): Collection<string, Command<Args, CommandOptions>>

Parameters

NameTypeDescription
...collectionsReadonlyCollection<string, Command<Args, CommandOptions>>[]

Returns

Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.concat

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:338


construct

construct(Ctor, data): Command<Args, CommandOptions>

Parameters

NameTypeDescription
CtorILoaderResultEntry<Command<Args, CommandOptions>>
dataHydratedModuleData

Returns

Command<Args, CommandOptions>

Inherited from

AliasStore.construct

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:348


delete

delete(key): boolean

Parameters

NameType
keystring

Returns

boolean

Inherited from

AliasStore.delete

Defined in

node_modules/typescript/lib/lib.es2015.collection.d.ts:27


difference

difference<T>(other): Collection<string, Command<Args, CommandOptions> | T>

Type parameters

Name
T

Parameters

NameTypeDescription
otherReadonlyCollection<string, T>

Returns

Collection<string, Command<Args, CommandOptions> | T>

Inherited from

AliasStore.difference

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:372


each

each(fn): CommandStore

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => void

Returns

CommandStore

Inherited from

AliasStore.each

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:303

each<T>(fn, thisArg): CommandStore

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => void
thisArgT

Returns

CommandStore

Inherited from

AliasStore.each

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:304


ensure

ensure(key, defaultValueGenerator): Command<Args, CommandOptions>

Parameters

NameTypeDescription
keystring
defaultValueGenerator(key: string, collection: CommandStore) => Command<Args, CommandOptions>

Returns

Command<Args, CommandOptions>

Inherited from

AliasStore.ensure

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:41


entries

entries(): IterableIterator<[string, Command<Args, CommandOptions>]>

Returns

IterableIterator<[string, Command<Args, CommandOptions>]>

Inherited from

AliasStore.entries

Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:126


equals

equals(collection): boolean

Parameters

NameTypeDescription
collectionReadonlyCollection<string, Command<Args, CommandOptions>>

Returns

boolean

Inherited from

AliasStore.equals

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:347


every

every<K2>(fn): this is Collection<K2, Command<Args, CommandOptions>>

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2

Returns

this is Collection<K2, Command<Args, CommandOptions>>

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:269

every<V2>(fn): this is Collection<string, V2>

Type parameters

NameType
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2

Returns

this is Collection<string, V2>

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:270

every(fn): boolean

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

boolean

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:271

every<This, K2>(fn, thisArg): this is Collection<K2, Command<Args, CommandOptions>>

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2
thisArgThis

Returns

this is Collection<K2, Command<Args, CommandOptions>>

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:272

every<This, V2>(fn, thisArg): this is Collection<string, V2>

Type parameters

NameType
ThisThis
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2
thisArgThis

Returns

this is Collection<string, V2>

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:273

every<This>(fn, thisArg): boolean

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgThis

Returns

boolean

Inherited from

AliasStore.every

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:274


filter

filter<K2>(fn): Collection<K2, Command<Args, CommandOptions>>

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2

Returns

Collection<K2, Command<Args, CommandOptions>>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:183

filter<V2>(fn): Collection<string, V2>

Type parameters

NameType
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2

Returns

Collection<string, V2>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:184

filter(fn): Collection<string, Command<Args, CommandOptions>>

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:185

filter<This, K2>(fn, thisArg): Collection<K2, Command<Args, CommandOptions>>

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2
thisArgThis

Returns

Collection<K2, Command<Args, CommandOptions>>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:186

filter<This, V2>(fn, thisArg): Collection<string, V2>

Type parameters

NameType
ThisThis
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2
thisArgThis

Returns

Collection<string, V2>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:187

filter<This>(fn, thisArg): Collection<string, Command<Args, CommandOptions>>

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgThis

Returns

Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.filter

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:188


find

find<V2>(fn): undefined | V2

Type parameters

NameType
V2extends Command<Args, CommandOptions, V2>

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2

Returns

undefined | V2

Inherited from

AliasStore.find

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:142

find(fn): undefined | Command<Args, CommandOptions>

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.find

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:143

find<This, V2>(fn, thisArg): undefined | V2

Type parameters

NameType
ThisThis
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2
thisArgThis

Returns

undefined | V2

Inherited from

AliasStore.find

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:144

find<This>(fn, thisArg): undefined | Command<Args, CommandOptions>

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgThis

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.find

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:145


findKey

findKey<K2>(fn): undefined | K2

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2

Returns

undefined | K2

Inherited from

AliasStore.findKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:158

findKey(fn): undefined | string

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

undefined | string

Inherited from

AliasStore.findKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:159

findKey<This, K2>(fn, thisArg): undefined | K2

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2
thisArgThis

Returns

undefined | K2

Inherited from

AliasStore.findKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:160

findKey<This>(fn, thisArg): undefined | string

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgThis

Returns

undefined | string

Inherited from

AliasStore.findKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:161


first

first(): undefined | Command<Args, CommandOptions>

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.first

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:62

first(amount): Command<Args, CommandOptions>[]

Parameters

NameType
amountnumber

Returns

Command<Args, CommandOptions>[]

Inherited from

AliasStore.first

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:63


firstKey

firstKey(): undefined | string

Returns

undefined | string

Inherited from

AliasStore.firstKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:71

firstKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

AliasStore.firstKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:72


flatMap

flatMap<T>(fn): Collection<string, T>

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => Collection<string, T>

Returns

Collection<string, T>

Inherited from

AliasStore.flatMap

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:217

flatMap<T, This>(fn, thisArg): Collection<string, T>

Type parameters

Name
T
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => Collection<string, T>
thisArgThis

Returns

Collection<string, T>

Inherited from

AliasStore.flatMap

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:218


forEach

forEach(callbackfn, thisArg?): void

Parameters

NameType
callbackfn(value: Command<Args, CommandOptions>, key: string, map: Map<string, Command<Args, CommandOptions>>) => void
thisArg?any

Returns

void

Inherited from

AliasStore.forEach

Defined in

node_modules/typescript/lib/lib.es2015.collection.d.ts:31


get

get(key): undefined | Command<Args, CommandOptions>

Parameters

NameTypeDescription
keystring

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.get

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:714


has

has(key): boolean

Parameters

NameTypeDescription
keystring

Returns

boolean

Inherited from

AliasStore.has

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:719


hasAll

hasAll(...keys): boolean

Parameters

NameTypeDescription
...keysstring[]

Returns

boolean

Inherited from

AliasStore.hasAll

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:48


hasAny

hasAny(...keys): boolean

Parameters

NameTypeDescription
...keysstring[]

Returns

boolean

Inherited from

AliasStore.hasAny

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:55


insert

insert(piece): Promise<Command<Args, CommandOptions>>

Parameters

NameTypeDescription
pieceCommand<Args, CommandOptions>

Returns

Promise<Command<Args, CommandOptions>>

Inherited from

AliasStore.insert

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:731


intersect

intersect<T>(other): Collection<string, T>

Type parameters

Name
T

Parameters

NameTypeDescription
otherReadonlyCollection<string, T>

Returns

Collection<string, T>

Inherited from

AliasStore.intersect

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:366


keyAt

keyAt(index): undefined | string

Parameters

NameTypeDescription
indexnumber

Returns

undefined | string

Inherited from

AliasStore.keyAt

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:106


keys

keys(): IterableIterator<string>

Returns

IterableIterator<string>

Inherited from

AliasStore.keys

Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:131


last

last(): undefined | Command<Args, CommandOptions>

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.last

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:80

last(amount): Command<Args, CommandOptions>[]

Parameters

NameType
amountnumber

Returns

Command<Args, CommandOptions>[]

Inherited from

AliasStore.last

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:81


lastKey

lastKey(): undefined | string

Returns

undefined | string

Inherited from

AliasStore.lastKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:89

lastKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

AliasStore.lastKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:90


load

load(root, path): Promise<Command<Args, CommandOptions>[]>

Parameters

NameTypeDescription
rootstring
pathstring

Returns

Promise<Command<Args, CommandOptions>[]>

Inherited from

AliasStore.load

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:315


loadAll

loadAll(): Promise<void>

Returns

Promise<void>

Overrides

AliasStore.loadAll

Defined in

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


map

map<T>(fn): T[]

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => T

Returns

T[]

Inherited from

AliasStore.map

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:230

map<This, T>(fn, thisArg): T[]

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => T
thisArgThis

Returns

T[]

Inherited from

AliasStore.map

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:231


mapValues

mapValues<T>(fn): Collection<string, T>

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => T

Returns

Collection<string, T>

Inherited from

AliasStore.mapValues

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:243

mapValues<This, T>(fn, thisArg): Collection<string, T>

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => T
thisArgThis

Returns

Collection<string, T>

Inherited from

AliasStore.mapValues

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:244


merge

merge<T, R>(other, whenInSelf, whenInOther, whenInBoth): Collection<string, R>

Type parameters

Name
T
R

Parameters

NameTypeDescription
otherReadonlyCollection<string, T>
whenInSelf(value: Command<Args, CommandOptions>, key: string) => Keep<R>
whenInOther(valueOther: T, key: string) => Keep<R>
whenInBoth(value: Command<Args, CommandOptions>, valueOther: T, key: string) => Keep<R>

Returns

Collection<string, R>

Inherited from

AliasStore.merge

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:401


partition

partition<K2>(fn): [Collection<K2, Command<Args, CommandOptions>>, Collection<Exclude<string, K2>, Command<Args, CommandOptions>>]

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2

Returns

[Collection<K2, Command<Args, CommandOptions>>, Collection<Exclude<string, K2>, Command<Args, CommandOptions>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:200

partition<V2>(fn): [Collection<string, V2>, Collection<string, Exclude<Command<Args, CommandOptions>, V2>>]

Type parameters

NameType
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2

Returns

[Collection<string, V2>, Collection<string, Exclude<Command<Args, CommandOptions>, V2>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:201

partition(fn): [Collection<string, Command<Args, CommandOptions>>, Collection<string, Command<Args, CommandOptions>>]

Parameters

NameType
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

[Collection<string, Command<Args, CommandOptions>>, Collection<string, Command<Args, CommandOptions>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:202

partition<This, K2>(fn, thisArg): [Collection<K2, Command<Args, CommandOptions>>, Collection<Exclude<string, K2>, Command<Args, CommandOptions>>]

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => key is K2
thisArgThis

Returns

[Collection<K2, Command<Args, CommandOptions>>, Collection<Exclude<string, K2>, Command<Args, CommandOptions>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:203

partition<This, V2>(fn, thisArg): [Collection<string, V2>, Collection<string, Exclude<Command<Args, CommandOptions>, V2>>]

Type parameters

NameType
ThisThis
V2extends Command<Args, CommandOptions, V2>

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => value is V2
thisArgThis

Returns

[Collection<string, V2>, Collection<string, Exclude<Command<Args, CommandOptions>, V2>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:204

partition<This>(fn, thisArg): [Collection<string, Command<Args, CommandOptions>>, Collection<string, Command<Args, CommandOptions>>]

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgThis

Returns

[Collection<string, Command<Args, CommandOptions>>, Collection<string, Command<Args, CommandOptions>>]

Inherited from

AliasStore.partition

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:205


random

random(): undefined | Command<Args, CommandOptions>

Returns

undefined | Command<Args, CommandOptions>

Inherited from

AliasStore.random

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:113

random(amount): Command<Args, CommandOptions>[]

Parameters

NameType
amountnumber

Returns

Command<Args, CommandOptions>[]

Inherited from

AliasStore.random

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:114


randomKey

randomKey(): undefined | string

Returns

undefined | string

Inherited from

AliasStore.randomKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:121

randomKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

AliasStore.randomKey

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:122


reduce

reduce<T>(fn, initialValue?): T

Type parameters

Name
T

Parameters

NameTypeDescription
fn(accumulator: T, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => T
initialValue?T

Returns

T

Inherited from

AliasStore.reduce

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:287


registerPath

registerPath(path): CommandStore

Parameters

NameTypeDescription
pathPath

Returns

CommandStore

Inherited from

AliasStore.registerPath

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:308


resolve

resolve(name): Command<Args, CommandOptions>

Parameters

NameTypeDescription
namestring | Command<Args, CommandOptions>

Returns

Command<Args, CommandOptions>

Inherited from

AliasStore.resolve

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:335


reverse

reverse(): CommandStore

Returns

CommandStore

Inherited from

AliasStore.reverse

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:127


set

set(key, value): CommandStore

Parameters

NameType
keystring
valueCommand<Args, CommandOptions>

Returns

CommandStore

Inherited from

AliasStore.set

Defined in

node_modules/typescript/lib/lib.es2015.collection.d.ts:44


some

some(fn): boolean

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

boolean

Inherited from

AliasStore.some

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:256

some<T>(fn, thisArg): boolean

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgT

Returns

boolean

Inherited from

AliasStore.some

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:257


sort

sort(compareFunction?): CommandStore

Parameters

NameTypeDescription
compareFunction?Comparator<string, Command<Args, CommandOptions>>

Returns

CommandStore

Inherited from

AliasStore.sort

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:360


sorted

sorted(compareFunction?): Collection<string, Command<Args, CommandOptions>>

Parameters

NameTypeDescription
compareFunction?Comparator<string, Command<Args, CommandOptions>>

Returns

Collection<string, Command<Args, CommandOptions>>

Inherited from

AliasStore.sorted

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:415


sweep

sweep(fn): number

Parameters

NameTypeDescription
fn(value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown

Returns

number

Inherited from

AliasStore.sweep

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:169

sweep<T>(fn, thisArg): number

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: Command<Args, CommandOptions>, key: string, collection: CommandStore) => unknown
thisArgT

Returns

number

Inherited from

AliasStore.sweep

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:170


tap

tap(fn): CommandStore

Parameters

NameTypeDescription
fn(collection: CommandStore) => void

Returns

CommandStore

Inherited from

AliasStore.tap

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:318

tap<T>(fn, thisArg): CommandStore

Type parameters

Name
T

Parameters

NameType
fn(this: T, collection: CommandStore) => void
thisArgT

Returns

CommandStore

Inherited from

AliasStore.tap

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:319


toJSON

toJSON(): Command<Args, CommandOptions>[]

Returns

Command<Args, CommandOptions>[]

Inherited from

AliasStore.toJSON

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:416


unload

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

Parameters

NameType
namestring | Command<Args, CommandOptions>

Returns

Promise<Command<Args, CommandOptions>>

Overrides

AliasStore.unload

Defined in

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


unloadAll

unloadAll(): Promise<Command<Args, CommandOptions>[]>

Returns

Promise<Command<Args, CommandOptions>[]>

Inherited from

AliasStore.unloadAll

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:325


values

values(): IterableIterator<Command<Args, CommandOptions>>

Returns

IterableIterator<Command<Args, CommandOptions>>

Inherited from

AliasStore.values

Defined in

node_modules/typescript/lib/lib.es2015.iterable.d.ts:136


combineEntries

Static combineEntries<K, V>(entries, combine): Collection<K, V>

Type parameters

Name
K
V

Parameters

NameTypeDescription
entriesIterable<[K, V]>
combine(firstValue: V, secondValue: V, key: K) => V

Returns

Collection<K, V>

Inherited from

AliasStore.combineEntries

Defined in

node_modules/@discordjs/collection/dist/index.d.ts:429