Skip to main content

Class: StoreRegistry

Hierarchy

  • Collection<Key, Value>

    StoreRegistry

Constructors

constructor

new StoreRegistry(entries?)

Parameters

NameType
entries?null | readonly readonly [never, never][]

Inherited from

Collection<Key, Value>.constructor

Defined in

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

new StoreRegistry(iterable?)

Parameters

NameType
iterable?null | Iterable<readonly [never, never]>

Inherited from

Collection<Key, Value>.constructor

Defined in

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

Properties

[toStringTag]

Readonly [toStringTag]: string

Inherited from

Collection.__@toStringTag@16172

Defined in

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


constructor

constructor: CollectionConstructor

Inherited from

Collection.constructor

Defined in

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


size

Readonly size: number

Inherited from

Collection.size

Defined in

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


[species]

Static Readonly [species]: MapConstructor

Inherited from

Collection.__@species@16751

Defined in

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

Methods

[iterator]

[iterator](): IterableIterator<[never, never]>

Returns

IterableIterator<[never, never]>

Inherited from

Collection.__@iterator@16234

Defined in

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


at

at(index): undefined

Parameters

NameTypeDescription
indexnumber

Returns

undefined

Inherited from

Collection.at

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:100


clear

clear(): void

Returns

void

Inherited from

Collection.clear

Defined in

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


clone

clone(): Collection<never, never>

Returns

Collection<never, never>

Inherited from

Collection.clone

Defined in

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


concat

concat(...collections): Collection<never, never>

Parameters

NameTypeDescription
...collectionsReadonlyCollection<never, never>[]

Returns

Collection<never, never>

Inherited from

Collection.concat

Defined in

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


delete

delete(key): boolean

Parameters

NameType
keynever

Returns

boolean

Inherited from

Collection.delete

Defined in

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


deregister

deregister<T>(store): StoreRegistry

Type parameters

NameType
Textends Piece<PieceOptions, T>

Parameters

NameTypeDescription
storeStore<T>

Returns

StoreRegistry

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:91


difference

difference<T>(other): Collection<never, T>

Type parameters

Name
T

Parameters

NameTypeDescription
otherReadonlyCollection<never, T>

Returns

Collection<never, T>

Inherited from

Collection.difference

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:362


each

each(fn): StoreRegistry

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => void

Returns

StoreRegistry

Inherited from

Collection.each

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:297

each<T>(fn, thisArg): StoreRegistry

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: never, key: never, collection: StoreRegistry) => void
thisArgT

Returns

StoreRegistry

Inherited from

Collection.each

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:298


ensure

ensure(key, defaultValueGenerator): never

Parameters

NameTypeDescription
keynever
defaultValueGenerator(key: never, collection: StoreRegistry) => never

Returns

never

Inherited from

Collection.ensure

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:37


entries

entries(): IterableIterator<[never, never]>

Returns

IterableIterator<[never, never]>

Inherited from

Collection.entries

Defined in

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


equals

equals(collection): boolean

Parameters

NameTypeDescription
collectionReadonlyCollection<never, never>

Returns

boolean

Inherited from

Collection.equals

Defined in

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


every

every<K2>(fn): this is Collection<K2, never>

Type parameters

NameType
K2extends never

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => key is K2

Returns

this is Collection<K2, never>

Inherited from

Collection.every

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:265

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

Type parameters

NameType
V2extends never

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => value is V2

Returns

this is Collection<never, V2>

Inherited from

Collection.every

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:266

every(fn): boolean

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

boolean

Inherited from

Collection.every

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:267

every<This, K2>(fn, thisArg): this is Collection<K2, never>

Type parameters

NameType
ThisThis
K2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => key is K2
thisArgThis

Returns

this is Collection<K2, never>

Inherited from

Collection.every

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:268

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

Type parameters

NameType
ThisThis
V2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => value is V2
thisArgThis

Returns

this is Collection<never, V2>

Inherited from

Collection.every

Defined in

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

every<This>(fn, thisArg): boolean

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => boolean
thisArgThis

Returns

boolean

Inherited from

Collection.every

Defined in

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


filter

filter<K2>(fn): Collection<K2, never>

Type parameters

NameType
K2extends never

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => key is K2

Returns

Collection<K2, never>

Inherited from

Collection.filter

Defined in

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

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

Type parameters

NameType
V2extends never

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => value is V2

Returns

Collection<never, V2>

Inherited from

Collection.filter

Defined in

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

filter(fn): Collection<never, never>

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

Collection<never, never>

Inherited from

Collection.filter

Defined in

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

filter<This, K2>(fn, thisArg): Collection<K2, never>

Type parameters

NameType
ThisThis
K2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => key is K2
thisArgThis

Returns

Collection<K2, never>

Inherited from

Collection.filter

Defined in

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

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

Type parameters

NameType
ThisThis
V2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => value is V2
thisArgThis

Returns

Collection<never, V2>

Inherited from

Collection.filter

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:189

filter<This>(fn, thisArg): Collection<never, never>

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => boolean
thisArgThis

Returns

Collection<never, never>

Inherited from

Collection.filter

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:190


find

find<V2>(fn): undefined | V2

Type parameters

NameType
V2extends never

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => value is V2

Returns

undefined | V2

Inherited from

Collection.find

Defined in

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

find(fn): undefined

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

undefined

Inherited from

Collection.find

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:146

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

Type parameters

NameType
ThisThis
V2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => value is V2
thisArgThis

Returns

undefined | V2

Inherited from

Collection.find

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:147

find<This>(fn, thisArg): undefined

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => boolean
thisArgThis

Returns

undefined

Inherited from

Collection.find

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:148


findKey

findKey<K2>(fn): undefined | K2

Type parameters

NameType
K2extends never

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => key is K2

Returns

undefined | K2

Inherited from

Collection.findKey

Defined in

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

findKey(fn): undefined

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

undefined

Inherited from

Collection.findKey

Defined in

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

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

Type parameters

NameType
ThisThis
K2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => key is K2
thisArgThis

Returns

undefined | K2

Inherited from

Collection.findKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:162

findKey<This>(fn, thisArg): undefined

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => boolean
thisArgThis

Returns

undefined

Inherited from

Collection.findKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:163


first

first(): undefined

Returns

undefined

Inherited from

Collection.first

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:61

first(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.first

Defined in

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


firstKey

firstKey(): undefined

Returns

undefined

Inherited from

Collection.firstKey

Defined in

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

firstKey(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.firstKey

Defined in

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


flatMap

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => Collection<never, T>

Returns

Collection<never, T>

Inherited from

Collection.flatMap

Defined in

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

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

Type parameters

Name
T
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => Collection<never, T>
thisArgThis

Returns

Collection<never, T>

Inherited from

Collection.flatMap

Defined in

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


forEach

forEach(callbackfn, thisArg?): void

Parameters

NameType
callbackfn(value: never, key: never, map: Map<never, never>) => void
thisArg?any

Returns

void

Inherited from

Collection.forEach

Defined in

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


get

get<K>(key): StoreRegistryEntries[K]

Type parameters

NameType
Kextends never

Parameters

NameType
keyK

Returns

StoreRegistryEntries[K]

Inherited from

Collection.get

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:98

get(key): undefined

Parameters

NameType
keystring

Returns

undefined

Inherited from

Collection.get

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:99


has

has(key): true

Parameters

NameType
keynever

Returns

true

Inherited from

Collection.has

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:100

has(key): false

Parameters

NameType
keystring

Returns

false

Inherited from

Collection.has

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:101


hasAll

hasAll(...keys): boolean

Parameters

NameTypeDescription
...keysnever[]

Returns

boolean

Inherited from

Collection.hasAll

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:45


hasAny

hasAny(...keys): boolean

Parameters

NameTypeDescription
...keysnever[]

Returns

boolean

Inherited from

Collection.hasAny

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:53


intersect

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

Type parameters

Name
T

Parameters

NameTypeDescription
otherReadonlyCollection<never, T>

Returns

Collection<never, T>

Inherited from

Collection.intersect

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:356


keyAt

keyAt(index): undefined

Parameters

NameTypeDescription
indexnumber

Returns

undefined

Inherited from

Collection.keyAt

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:108


keys

keys(): IterableIterator<never>

Returns

IterableIterator<never>

Inherited from

Collection.keys

Defined in

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


last

last(): undefined

Returns

undefined

Inherited from

Collection.last

Defined in

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

last(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.last

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:82


lastKey

lastKey(): undefined

Returns

undefined

Inherited from

Collection.lastKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:91

lastKey(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.lastKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:92


load

load(): Promise<void>

Returns

Promise<void>

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:36


map

map<T>(fn): T[]

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => T

Returns

T[]

Inherited from

Collection.map

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:229

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

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => T
thisArgThis

Returns

T[]

Inherited from

Collection.map

Defined in

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


mapValues

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => T

Returns

Collection<never, T>

Inherited from

Collection.mapValues

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:241

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

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => T
thisArgThis

Returns

Collection<never, T>

Inherited from

Collection.mapValues

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:242


merge

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

Type parameters

Name
T
R

Parameters

NameTypeDescription
otherReadonlyCollection<never, T>
whenInSelf(value: never, key: never) => Keep<R>
whenInOther(valueOther: T, key: never) => Keep<R>
whenInBoth(value: never, valueOther: T, key: never) => Keep<R>

Returns

Collection<never, R>

Inherited from

Collection.merge

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:388


partition

partition<K2>(fn): [Collection<K2, never>, Collection<never, never>]

Type parameters

NameType
K2extends never

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => key is K2

Returns

[Collection<K2, never>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

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

partition<V2>(fn): [Collection<never, V2>, Collection<never, never>]

Type parameters

NameType
V2extends never

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => value is V2

Returns

[Collection<never, V2>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

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

partition(fn): [Collection<never, never>, Collection<never, never>]

Parameters

NameType
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

[Collection<never, never>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

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

partition<This, K2>(fn, thisArg): [Collection<K2, never>, Collection<never, never>]

Type parameters

NameType
ThisThis
K2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => key is K2
thisArgThis

Returns

[Collection<K2, never>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

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

partition<This, V2>(fn, thisArg): [Collection<never, V2>, Collection<never, never>]

Type parameters

NameType
ThisThis
V2extends never

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => value is V2
thisArgThis

Returns

[Collection<never, V2>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

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

partition<This>(fn, thisArg): [Collection<never, never>, Collection<never, never>]

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: never, key: never, collection: StoreRegistry) => boolean
thisArgThis

Returns

[Collection<never, never>, Collection<never, never>]

Inherited from

Collection.partition

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:206


random

random(): undefined

Returns

undefined

Inherited from

Collection.random

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:116

random(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.random

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:117


randomKey

randomKey(): undefined

Returns

undefined

Inherited from

Collection.randomKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:125

randomKey(amount): never[]

Parameters

NameType
amountnumber

Returns

never[]

Inherited from

Collection.randomKey

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:126


reduce

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(accumulator: T, value: never, key: never, collection: StoreRegistry) => T
initialValue?T

Returns

T

Inherited from

Collection.reduce

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:282


register

register<T>(store): StoreRegistry

Type parameters

NameType
Textends Piece<PieceOptions, T>

Parameters

NameTypeDescription
storeStore<T>

Returns

StoreRegistry

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:81


registerPath

registerPath(rootDirectory?): void

Parameters

NameTypeDescription
rootDirectoryPath

Returns

void

Defined in

projects/pieces/src/lib/structures/StoreRegistry.ts:69


reverse

reverse(): StoreRegistry

Returns

StoreRegistry

Inherited from

Collection.reverse

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:131


set

set(key, value): StoreRegistry

Parameters

NameType
keynever
valuenever

Returns

StoreRegistry

Inherited from

Collection.set

Defined in

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


some

some(fn): boolean

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

boolean

Inherited from

Collection.some

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:253

some<T>(fn, thisArg): boolean

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: never, key: never, collection: StoreRegistry) => boolean
thisArgT

Returns

boolean

Inherited from

Collection.some

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:254


sort

sort(compareFunction?): StoreRegistry

Parameters

NameTypeDescription
compareFunction?Comparator<never, never>

Returns

StoreRegistry

Inherited from

Collection.sort

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:350


sorted

sorted(compareFunction?): Collection<never, never>

Parameters

NameTypeDescription
compareFunction?Comparator<never, never>

Returns

Collection<never, never>

Inherited from

Collection.sorted

Defined in

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


sweep

sweep(fn): number

Parameters

NameTypeDescription
fn(value: never, key: never, collection: StoreRegistry) => boolean

Returns

number

Inherited from

Collection.sweep

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:172

sweep<T>(fn, thisArg): number

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: never, key: never, collection: StoreRegistry) => boolean
thisArgT

Returns

number

Inherited from

Collection.sweep

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:173


tap

tap(fn): StoreRegistry

Parameters

NameTypeDescription
fn(collection: StoreRegistry) => void

Returns

StoreRegistry

Inherited from

Collection.tap

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:311

tap<T>(fn, thisArg): StoreRegistry

Type parameters

Name
T

Parameters

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

Returns

StoreRegistry

Inherited from

Collection.tap

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:312


toJSON

toJSON(): never[]

Returns

never[]

Inherited from

Collection.toJSON

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:402


values

values(): IterableIterator<never>

Returns

IterableIterator<never>

Inherited from

Collection.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

Collection.combineEntries

Defined in

node_modules/@discordjs/collection/dist/collection.d.ts:414