Class: StoreRegistry
Hierarchy
Collection
<Key
,Value
>↳
StoreRegistry
Constructors
constructor
• new StoreRegistry(entries?
)
Parameters
Name | Type |
---|---|
entries? | null | readonly readonly [keyof StoreRegistryEntries , Value ][] |
Inherited from
Collection<Key, Value>.constructor
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:33
• new StoreRegistry(iterable?
)
Parameters
Name | Type |
---|---|
iterable? | null | Iterable <readonly [keyof StoreRegistryEntries , Value ]> |
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@501
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@50
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:317
Methods
[iterator]
▸ [iterator](): IterableIterator
<[keyof StoreRegistryEntries
, Value
]>
Returns
IterableIterator
<[keyof StoreRegistryEntries
, Value
]>
Inherited from
Collection.__@iterator@59
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:121
at
▸ at(index
): undefined
| Value
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| Value
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
<keyof StoreRegistryEntries
, Value
>
Returns
Collection
<keyof StoreRegistryEntries
, Value
>
Inherited from
Collection.clone
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:319
concat
▸ concat(...collections
): Collection
<keyof StoreRegistryEntries
, Value
>
Parameters
Name | Type | Description |
---|---|---|
...collections | ReadonlyCollection <keyof StoreRegistryEntries , Value >[] |
Returns
Collection
<keyof StoreRegistryEntries
, Value
>
Inherited from
Collection.concat
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:328
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | keyof StoreRegistryEntries |
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
Name | Type |
---|---|
T | extends Piece <PieceOptions , T > |
Parameters
Name | Type | Description |
---|---|---|
store | Store <T > |
Returns
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:556
difference
▸ difference<T
>(other
): Collection
<keyof StoreRegistryEntries
, Value
| T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <keyof StoreRegistryEntries , T > |
Returns
Collection
<keyof StoreRegistryEntries
, Value
| T
>
Inherited from
Collection.difference
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:362
each
▸ each(fn
): StoreRegistry
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => void |
Returns
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
Name | Type |
---|---|
fn | (this : T , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => void |
thisArg | T |
Returns
Inherited from
Collection.each
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:298
ensure
▸ ensure(key
, defaultValueGenerator
): Value
Parameters
Name | Type | Description |
---|---|---|
key | keyof StoreRegistryEntries | |
defaultValueGenerator | (key : keyof StoreRegistryEntries , collection : StoreRegistry ) => Value |
Returns
Value
Inherited from
Collection.ensure
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:37
entries
▸ entries(): IterableIterator
<[keyof StoreRegistryEntries
, Value
]>
Returns
IterableIterator
<[keyof StoreRegistryEntries
, Value
]>
Inherited from
Collection.entries
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:126
equals
▸ equals(collection
): boolean
Parameters
Name | Type | Description |
---|---|---|
collection | ReadonlyCollection <keyof StoreRegistryEntries , Value > |
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, Value>
Type parameters
Name | Type |
---|---|
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
Returns
this is Collection<K2, Value>
Inherited from
Collection.every
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:265
▸ every<V2
>(fn
): this is Collection<keyof StoreRegistryEntries, V2>
Type parameters
Name | Type |
---|---|
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
Returns
this is Collection<keyof StoreRegistryEntries, V2>
Inherited from
Collection.every
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:266
▸ every(fn
): boolean
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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, Value>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
thisArg | This |
Returns
this is Collection<K2, Value>
Inherited from
Collection.every
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:268
▸ every<This
, V2
>(fn
, thisArg
): this is Collection<keyof StoreRegistryEntries, V2>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
thisArg | This |
Returns
this is Collection<keyof StoreRegistryEntries, 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
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | This |
Returns
boolean
Inherited from
Collection.every
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:270
filter
▸ filter<K2
>(fn
): Collection
<K2
, Value
>
Type parameters
Name | Type |
---|---|
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
Returns
Collection
<K2
, Value
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:185
▸ filter<V2
>(fn
): Collection
<keyof StoreRegistryEntries
, V2
>
Type parameters
Name | Type |
---|---|
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
Returns
Collection
<keyof StoreRegistryEntries
, V2
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:186
▸ filter(fn
): Collection
<keyof StoreRegistryEntries
, Value
>
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
Returns
Collection
<keyof StoreRegistryEntries
, Value
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:187
▸ filter<This
, K2
>(fn
, thisArg
): Collection
<K2
, Value
>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
thisArg | This |
Returns
Collection
<K2
, Value
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:188
▸ filter<This
, V2
>(fn
, thisArg
): Collection
<keyof StoreRegistryEntries
, V2
>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
thisArg | This |
Returns
Collection
<keyof StoreRegistryEntries
, V2
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:189
▸ filter<This
>(fn
, thisArg
): Collection
<keyof StoreRegistryEntries
, Value
>
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | This |
Returns
Collection
<keyof StoreRegistryEntries
, Value
>
Inherited from
Collection.filter
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:190
find
▸ find<V2
>(fn
): undefined
| V2
Type parameters
Name | Type |
---|---|
V2 | extends Value |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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
| Value
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
Returns
undefined
| Value
Inherited from
Collection.find
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:146
▸ find<This
, V2
>(fn
, thisArg
): undefined
| V2
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
thisArg | This |
Returns
undefined
| V2
Inherited from
Collection.find
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:147
▸ find<This
>(fn
, thisArg
): undefined
| Value
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | This |
Returns
undefined
| Value
Inherited from
Collection.find
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:148
findKey
▸ findKey<K2
>(fn
): undefined
| K2
Type parameters
Name | Type |
---|---|
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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
| keyof StoreRegistryEntries
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.findKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:161
▸ findKey<This
, K2
>(fn
, thisArg
): undefined
| K2
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
thisArg | This |
Returns
undefined
| K2
Inherited from
Collection.findKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:162
▸ findKey<This
>(fn
, thisArg
): undefined
| keyof StoreRegistryEntries
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | This |
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.findKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:163
first
▸ first(): undefined
| Value
Returns
undefined
| Value
Inherited from
Collection.first
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:61
▸ first(amount
): Value
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Value
[]
Inherited from
Collection.first
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:62
firstKey
▸ firstKey(): undefined
| keyof StoreRegistryEntries
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.firstKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:71
▸ firstKey(amount
): keyof StoreRegistryEntries
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
keyof StoreRegistryEntries
[]
Inherited from
Collection.firstKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:72
flatMap
▸ flatMap<T
>(fn
): Collection
<keyof StoreRegistryEntries
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => Collection <keyof StoreRegistryEntries , T > |
Returns
Collection
<keyof StoreRegistryEntries
, T
>
Inherited from
Collection.flatMap
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:217
▸ flatMap<T
, This
>(fn
, thisArg
): Collection
<keyof StoreRegistryEntries
, T
>
Type parameters
Name |
---|
T |
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => Collection <keyof StoreRegistryEntries , T > |
thisArg | This |
Returns
Collection
<keyof StoreRegistryEntries
, T
>
Inherited from
Collection.flatMap
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:218
forEach
▸ forEach(callbackfn
, thisArg?
): void
Parameters
Name | Type |
---|---|
callbackfn | (value : Value , key : keyof StoreRegistryEntries , map : Map <keyof StoreRegistryEntries , Value >) => 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
Name | Type |
---|---|
K | extends keyof StoreRegistryEntries |
Parameters
Name | Type |
---|---|
key | K |
Returns
Inherited from
Collection.get
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:559
▸ get(key
): undefined
Parameters
Name | Type |
---|---|
key | string |
Returns
undefined
Inherited from
Collection.get
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:560
has
▸ has(key
): true
Parameters
Name | Type |
---|---|
key | keyof StoreRegistryEntries |
Returns
true
Inherited from
Collection.has
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:561
▸ has(key
): false
Parameters
Name | Type |
---|---|
key | string |
Returns
false
Inherited from
Collection.has
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:562
hasAll
▸ hasAll(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | keyof StoreRegistryEntries [] |
Returns
boolean
Inherited from
Collection.hasAll
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:45
hasAny
▸ hasAny(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | keyof StoreRegistryEntries [] |
Returns
boolean
Inherited from
Collection.hasAny
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:53
intersect
▸ intersect<T
>(other
): Collection
<keyof StoreRegistryEntries
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <keyof StoreRegistryEntries , T > |
Returns
Collection
<keyof StoreRegistryEntries
, T
>
Inherited from
Collection.intersect
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:356
keyAt
▸ keyAt(index
): undefined
| keyof StoreRegistryEntries
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.keyAt
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:108
keys
▸ keys(): IterableIterator
<keyof StoreRegistryEntries
>
Returns
IterableIterator
<keyof StoreRegistryEntries
>
Inherited from
Collection.keys
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:131
last
▸ last(): undefined
| Value
Returns
undefined
| Value
Inherited from
Collection.last
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:81
▸ last(amount
): Value
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Value
[]
Inherited from
Collection.last
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:82
lastKey
▸ lastKey(): undefined
| keyof StoreRegistryEntries
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.lastKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:91
▸ lastKey(amount
): keyof StoreRegistryEntries
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
keyof StoreRegistryEntries
[]
Inherited from
Collection.lastKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:92
load
▸ load(): Promise
<void
>
Returns
Promise
<void
>
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:519
map
▸ map<T
>(fn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => T |
thisArg | This |
Returns
T
[]
Inherited from
Collection.map
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:230
mapValues
▸ mapValues<T
>(fn
): Collection
<keyof StoreRegistryEntries
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => T |
Returns
Collection
<keyof StoreRegistryEntries
, T
>
Inherited from
Collection.mapValues
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:241
▸ mapValues<This
, T
>(fn
, thisArg
): Collection
<keyof StoreRegistryEntries
, T
>
Type parameters
Name |
---|
This |
T |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => T |
thisArg | This |
Returns
Collection
<keyof StoreRegistryEntries
, 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
<keyof StoreRegistryEntries
, R
>
Type parameters
Name |
---|
T |
R |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <keyof StoreRegistryEntries , T > | |
whenInSelf | (value : Value , key : keyof StoreRegistryEntries ) => Keep <R > | |
whenInOther | (valueOther : T , key : keyof StoreRegistryEntries ) => Keep <R > | |
whenInBoth | (value : Value , valueOther : T , key : keyof StoreRegistryEntries ) => Keep <R > |
Returns
Collection
<keyof StoreRegistryEntries
, R
>
Inherited from
Collection.merge
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:388
partition
▸ partition<K2
>(fn
): [Collection
<K2
, Value
>, Collection
<Exclude
<"arguments"
, K2
> | Exclude
<"commands"
, K2
> | Exclude
<"interaction-handlers"
, K2
> | Exclude
<"listeners"
, K2
> | Exclude
<"preconditions"
, K2
>, Value
>]
Type parameters
Name | Type |
---|---|
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
Returns
[Collection
<K2
, Value
>, Collection
<Exclude
<"arguments"
, K2
> | Exclude
<"commands"
, K2
> | Exclude
<"interaction-handlers"
, K2
> | Exclude
<"listeners"
, K2
> | Exclude
<"preconditions"
, K2
>, Value
>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:201
▸ partition<V2
>(fn
): [Collection
<keyof StoreRegistryEntries
, V2
>, Collection
<keyof StoreRegistryEntries
, Exclude
<ArgumentStore
, V2
> | Exclude
<CommandStore
, V2
> | Exclude
<InteractionHandlerStore
, V2
> | Exclude
<ListenerStore
, V2
> | Exclude
<PreconditionStore
, V2
>>]
Type parameters
Name | Type |
---|---|
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
Returns
[Collection
<keyof StoreRegistryEntries
, V2
>, Collection
<keyof StoreRegistryEntries
, Exclude
<ArgumentStore
, V2
> | Exclude
<CommandStore
, V2
> | Exclude
<InteractionHandlerStore
, V2
> | Exclude
<ListenerStore
, V2
> | Exclude
<PreconditionStore
, V2
>>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:202
▸ partition(fn
): [Collection
<keyof StoreRegistryEntries
, Value
>, Collection
<keyof StoreRegistryEntries
, Value
>]
Parameters
Name | Type |
---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
Returns
[Collection
<keyof StoreRegistryEntries
, Value
>, Collection
<keyof StoreRegistryEntries
, Value
>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:203
▸ partition<This
, K2
>(fn
, thisArg
): [Collection
<K2
, Value
>, Collection
<Exclude
<"arguments"
, K2
> | Exclude
<"commands"
, K2
> | Exclude
<"interaction-handlers"
, K2
> | Exclude
<"listeners"
, K2
> | Exclude
<"preconditions"
, K2
>, Value
>]
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends keyof StoreRegistryEntries |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => key is K2 |
thisArg | This |
Returns
[Collection
<K2
, Value
>, Collection
<Exclude
<"arguments"
, K2
> | Exclude
<"commands"
, K2
> | Exclude
<"interaction-handlers"
, K2
> | Exclude
<"listeners"
, K2
> | Exclude
<"preconditions"
, K2
>, Value
>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:204
▸ partition<This
, V2
>(fn
, thisArg
): [Collection
<keyof StoreRegistryEntries
, V2
>, Collection
<keyof StoreRegistryEntries
, Exclude
<ArgumentStore
, V2
> | Exclude
<CommandStore
, V2
> | Exclude
<InteractionHandlerStore
, V2
> | Exclude
<ListenerStore
, V2
> | Exclude
<PreconditionStore
, V2
>>]
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Value |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => value is V2 |
thisArg | This |
Returns
[Collection
<keyof StoreRegistryEntries
, V2
>, Collection
<keyof StoreRegistryEntries
, Exclude
<ArgumentStore
, V2
> | Exclude
<CommandStore
, V2
> | Exclude
<InteractionHandlerStore
, V2
> | Exclude
<ListenerStore
, V2
> | Exclude
<PreconditionStore
, V2
>>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:205
▸ partition<This
>(fn
, thisArg
): [Collection
<keyof StoreRegistryEntries
, Value
>, Collection
<keyof StoreRegistryEntries
, Value
>]
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | This |
Returns
[Collection
<keyof StoreRegistryEntries
, Value
>, Collection
<keyof StoreRegistryEntries
, Value
>]
Inherited from
Collection.partition
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:206
random
▸ random(): undefined
| Value
Returns
undefined
| Value
Inherited from
Collection.random
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:116
▸ random(amount
): Value
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Value
[]
Inherited from
Collection.random
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:117
randomKey
▸ randomKey(): undefined
| keyof StoreRegistryEntries
Returns
undefined
| keyof StoreRegistryEntries
Inherited from
Collection.randomKey
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:125
▸ randomKey(amount
): keyof StoreRegistryEntries
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
keyof StoreRegistryEntries
[]
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
Name | Type | Description |
---|---|---|
fn | (accumulator : T , value : Value , key : keyof StoreRegistryEntries , 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
Name | Type |
---|---|
T | extends Piece <PieceOptions , T > |
Parameters
Name | Type | Description |
---|---|---|
store | Store <T > |
Returns
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:550
registerPath
▸ registerPath(rootDirectory?
): void
Parameters
Name | Type | Description |
---|---|---|
rootDirectory? | Path |
Returns
void
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:544
reverse
▸ reverse(): StoreRegistry
Returns
Inherited from
Collection.reverse
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:131
set
▸ set(key
, value
): StoreRegistry
Parameters
Name | Type |
---|---|
key | keyof StoreRegistryEntries |
value | Value |
Returns
Inherited from
Collection.set
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:27
some
▸ some(fn
): boolean
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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
Name | Type |
---|---|
fn | (this : T , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | T |
Returns
boolean
Inherited from
Collection.some
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:254
sort
▸ sort(compareFunction?
): StoreRegistry
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <keyof StoreRegistryEntries , Value > |
Returns
Inherited from
Collection.sort
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:350
sorted
▸ sorted(compareFunction?
): Collection
<keyof StoreRegistryEntries
, Value
>
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <keyof StoreRegistryEntries , Value > |
Returns
Collection
<keyof StoreRegistryEntries
, Value
>
Inherited from
Collection.sorted
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:401
sweep
▸ sweep(fn
): number
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Value , key : keyof StoreRegistryEntries , 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
Name | Type |
---|---|
fn | (this : T , value : Value , key : keyof StoreRegistryEntries , collection : StoreRegistry ) => boolean |
thisArg | T |
Returns
number
Inherited from
Collection.sweep
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:173
tap
▸ tap(fn
): StoreRegistry
Parameters
Name | Type | Description |
---|---|---|
fn | (collection : StoreRegistry ) => void |
Returns
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
Name | Type |
---|---|
fn | (this : T , collection : StoreRegistry ) => void |
thisArg | T |
Returns
Inherited from
Collection.tap
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:312
toJSON
▸ toJSON(): Value
[]
Returns
Value
[]
Inherited from
Collection.toJSON
Defined in
node_modules/@discordjs/collection/dist/collection.d.ts:402
values
▸ values(): IterableIterator
<Value
>
Returns
IterableIterator
<Value
>
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
Name | Type | Description |
---|---|---|
entries | Iterable <[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