Class: RouteStore
api/src.RouteStore
Hierarchy
Store
<Route
>↳
RouteStore
Constructors
constructor
• new RouteStore()
Overrides
Store<Route\>.constructor
Defined in
projects/plugins/packages/api/src/lib/structures/RouteStore.ts:26
Properties
Constructor
• Readonly
Constructor: Constructor
<Route
>
Inherited from
Store.Constructor
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:281
[toStringTag]
• Readonly
[toStringTag]: string
Inherited from
Store.__@toStringTag@106266
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:135
constructor
• constructor: CollectionConstructor
Inherited from
Store.constructor
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:21
name
• Readonly
name: string
Inherited from
Store.name
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:282
paths
• Readonly
paths: Set
<string
>
Inherited from
Store.paths
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:283
size
• Readonly
size: number
Inherited from
Store.size
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:28
strategy
• Readonly
strategy: ILoaderStrategy
<Route
>
Inherited from
Store.strategy
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:284
table
• Readonly
table: Collection
<Methods
, Collection
<Route
, MethodCallback
>>
Defined in
projects/plugins/packages/api/src/lib/structures/RouteStore.ts:24
[species]
▪ Static
Readonly
[species]: MapConstructor
Inherited from
Store.__@species@106412
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:317
default
▪ Static
Readonly
default: typeof Collection
Inherited from
Store.default
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:28
defaultStrategy
▪ Static
defaultStrategy: ILoaderStrategy
<any
>
Inherited from
Store.defaultStrategy
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:369
logger
▪ Static
logger: null
| StoreLogger
Inherited from
Store.logger
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:373
Accessors
container
• get
container(): Container
Returns
Container
Inherited from
Store.container
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:294
Methods
[iterator]
▸ [iterator](): IterableIterator
<[string
, Route
]>
Returns
IterableIterator
<[string
, Route
]>
Inherited from
Store.__@iterator@106194
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:121
at
▸ at(index
): undefined
| Route
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| Route
Inherited from
Store.at
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:101
clear
▸ clear(): void
Returns
void
Inherited from
Store.clear
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:22
clone
▸ clone(): Collection
<string
, Route
>
Returns
Collection
<string
, Route
>
Inherited from
Store.clone
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:320
concat
▸ concat(...collections
): Collection
<string
, Route
>
Parameters
Name | Type | Description |
---|---|---|
...collections | ReadonlyCollection <string , Route >[] |
Returns
Collection
<string
, Route
>
Inherited from
Store.concat
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:329
construct
▸ construct(Ctor
, data
): Route
Parameters
Name | Type | Description |
---|---|---|
Ctor | ILoaderResultEntry <Route > | |
data | HydratedModuleData |
Returns
Inherited from
Store.construct
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:345
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Inherited from
Store.delete
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:23
difference
▸ difference<T
>(other
): Collection
<string
, Route
| T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > |
Returns
Collection
<string
, Route
| T
>
Inherited from
Store.difference
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:363
each
▸ each(fn
): RouteStore
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => void |
Returns
Inherited from
Store.each
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:298
▸ each<T
>(fn
, thisArg
): RouteStore
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : Route , key : string , collection : RouteStore ) => void |
thisArg | T |
Returns
Inherited from
Store.each
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:299
ensure
▸ ensure(key
, defaultValueGenerator
): Route
Parameters
Name | Type | Description |
---|---|---|
key | string | |
defaultValueGenerator | (key : string , collection : RouteStore ) => Route |
Returns
Inherited from
Store.ensure
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:38
entries
▸ entries(): IterableIterator
<[string
, Route
]>
Returns
IterableIterator
<[string
, Route
]>
Inherited from
Store.entries
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:126
equals
▸ equals(collection
): boolean
Parameters
Name | Type | Description |
---|---|---|
collection | ReadonlyCollection <string , Route > |
Returns
boolean
Inherited from
Store.equals
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:339
every
▸ every<K2
>(fn
): this is Collection<K2, Route>
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => key is K2 |
Returns
this is Collection<K2, Route>
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:266
▸ every<V2
>(fn
): this is Collection<string, V2>
Type parameters
Name | Type |
---|---|
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => value is V2 |
Returns
this is Collection<string, V2>
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:267
▸ every(fn
): boolean
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
boolean
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:268
▸ every<This
, K2
>(fn
, thisArg
): this is Collection<K2, Route>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => key is K2 |
thisArg | This |
Returns
this is Collection<K2, Route>
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:269
▸ every<This
, V2
>(fn
, thisArg
): this is Collection<string, V2>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => value is V2 |
thisArg | This |
Returns
this is Collection<string, V2>
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:270
▸ every<This
>(fn
, thisArg
): boolean
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | This |
Returns
boolean
Inherited from
Store.every
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:271
filter
▸ filter<K2
>(fn
): Collection
<K2
, Route
>
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => key is K2 |
Returns
Collection
<K2
, Route
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:186
▸ filter<V2
>(fn
): Collection
<string
, V2
>
Type parameters
Name | Type |
---|---|
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => value is V2 |
Returns
Collection
<string
, V2
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:187
▸ filter(fn
): Collection
<string
, Route
>
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
Collection
<string
, Route
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:188
▸ filter<This
, K2
>(fn
, thisArg
): Collection
<K2
, Route
>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => key is K2 |
thisArg | This |
Returns
Collection
<K2
, Route
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:189
▸ filter<This
, V2
>(fn
, thisArg
): Collection
<string
, V2
>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => value is V2 |
thisArg | This |
Returns
Collection
<string
, V2
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:190
▸ filter<This
>(fn
, thisArg
): Collection
<string
, Route
>
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | This |
Returns
Collection
<string
, Route
>
Inherited from
Store.filter
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:191
find
▸ find<V2
>(fn
): undefined
| V2
Type parameters
Name | Type |
---|---|
V2 | extends Route <V2 > |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => value is V2 |
Returns
undefined
| V2
Inherited from
Store.find
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:146
▸ find(fn
): undefined
| Route
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
undefined
| Route
Inherited from
Store.find
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:147
▸ find<This
, V2
>(fn
, thisArg
): undefined
| V2
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => value is V2 |
thisArg | This |
Returns
undefined
| V2
Inherited from
Store.find
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:148
▸ find<This
>(fn
, thisArg
): undefined
| Route
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | This |
Returns
undefined
| Route
Inherited from
Store.find
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:149
findKey
▸ findKey<K2
>(fn
): undefined
| K2
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => key is K2 |
Returns
undefined
| K2
Inherited from
Store.findKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:161
▸ findKey(fn
): undefined
| string
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
undefined
| string
Inherited from
Store.findKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:162
▸ findKey<This
, K2
>(fn
, thisArg
): undefined
| K2
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => key is K2 |
thisArg | This |
Returns
undefined
| K2
Inherited from
Store.findKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:163
▸ findKey<This
>(fn
, thisArg
): undefined
| string
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | This |
Returns
undefined
| string
Inherited from
Store.findKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:164
first
▸ first(): undefined
| Route
Returns
undefined
| Route
Inherited from
Store.first
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:62
▸ first(amount
): Route
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Route
[]
Inherited from
Store.first
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:63
firstKey
▸ firstKey(): undefined
| string
Returns
undefined
| string
Inherited from
Store.firstKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:72
▸ firstKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Store.firstKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:73
flatMap
▸ flatMap<T
>(fn
): Collection
<string
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => Collection <string , T > |
Returns
Collection
<string
, T
>
Inherited from
Store.flatMap
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:218
▸ flatMap<T
, This
>(fn
, thisArg
): Collection
<string
, T
>
Type parameters
Name |
---|
T |
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => Collection <string , T > |
thisArg | This |
Returns
Collection
<string
, T
>
Inherited from
Store.flatMap
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:219
forEach
▸ forEach(callbackfn
, thisArg?
): void
Parameters
Name | Type |
---|---|
callbackfn | (value : Route , key : string , map : Map <string , Route >) => void |
thisArg? | any |
Returns
void
Inherited from
Store.forEach
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:24
get
▸ get(key
): undefined
| Route
Parameters
Name | Type |
---|---|
key | string |
Returns
undefined
| Route
Inherited from
Store.get
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:25
has
▸ has(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Inherited from
Store.has
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:26
hasAll
▸ hasAll(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | string [] |
Returns
boolean
Inherited from
Store.hasAll
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:46
hasAny
▸ hasAny(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | string [] |
Returns
boolean
Inherited from
Store.hasAny
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:54
insert
▸ insert(piece
): Promise
<Route
>
Parameters
Name | Type | Description |
---|---|---|
piece | Route |
Returns
Inherited from
Store.insert
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:338
intersect
▸ intersect<T
>(other
): Collection
<string
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > |
Returns
Collection
<string
, T
>
Inherited from
Store.intersect
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:357
keyAt
▸ keyAt(index
): undefined
| string
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| string
Inherited from
Store.keyAt
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:109
keys
▸ keys(): IterableIterator
<string
>
Returns
IterableIterator
<string
>
Inherited from
Store.keys
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:131
last
▸ last(): undefined
| Route
Returns
undefined
| Route
Inherited from
Store.last
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:82
▸ last(amount
): Route
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Route
[]
Inherited from
Store.last
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:83
lastKey
▸ lastKey(): undefined
| string
Returns
undefined
| string
Inherited from
Store.lastKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:92
▸ lastKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Store.lastKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:93
load
▸ load(root
, path
): Promise
<Route
[]>
Parameters
Name | Type | Description |
---|---|---|
root | string | |
path | string |
Returns
Inherited from
Store.load
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:312
loadAll
▸ loadAll(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
Store.loadAll
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:326
map
▸ map<T
>(fn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => T |
Returns
T
[]
Inherited from
Store.map
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:230
▸ map<This
, T
>(fn
, thisArg
): T
[]
Type parameters
Name |
---|
This |
T |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => T |
thisArg | This |
Returns
T
[]
Inherited from
Store.map
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:231
mapValues
▸ mapValues<T
>(fn
): Collection
<string
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => T |
Returns
Collection
<string
, T
>
Inherited from
Store.mapValues
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:242
▸ mapValues<This
, T
>(fn
, thisArg
): Collection
<string
, T
>
Type parameters
Name |
---|
This |
T |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => T |
thisArg | This |
Returns
Collection
<string
, T
>
Inherited from
Store.mapValues
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:243
match
▸ match(request
): null
| RouteMatch
Parameters
Name | Type |
---|---|
request | ApiRequest |
Returns
null
| RouteMatch
Defined in
projects/plugins/packages/api/src/lib/structures/RouteStore.ts:32
merge
▸ merge<T
, R
>(other
, whenInSelf
, whenInOther
, whenInBoth
): Collection
<string
, R
>
Type parameters
Name |
---|
T |
R |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > | |
whenInSelf | (value : Route , key : string ) => Keep <R > | |
whenInOther | (valueOther : T , key : string ) => Keep <R > | |
whenInBoth | (value : Route , valueOther : T , key : string ) => Keep <R > |
Returns
Collection
<string
, R
>
Inherited from
Store.merge
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:389
parseURL
▸ Private
parseURL(url?
): Object
Parameters
Name | Type | Default value |
---|---|---|
url | string | '' |
Returns
Object
Name | Type |
---|---|
querystring | string |
splits | string [] |
Defined in
projects/plugins/packages/api/src/lib/structures/RouteStore.ts:63
partition
▸ partition<K2
>(fn
): [Collection
<K2
, Route
>, Collection
<Exclude
<string
, K2
>, Route
>]
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => key is K2 |
Returns
[Collection
<K2
, Route
>, Collection
<Exclude
<string
, K2
>, Route
>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:202
▸ partition<V2
>(fn
): [Collection
<string
, V2
>, Collection
<string
, Exclude
<Route
, V2
>>]
Type parameters
Name | Type |
---|---|
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => value is V2 |
Returns
[Collection
<string
, V2
>, Collection
<string
, Exclude
<Route
, V2
>>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:203
▸ partition(fn
): [Collection
<string
, Route
>, Collection
<string
, Route
>]
Parameters
Name | Type |
---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
[Collection
<string
, Route
>, Collection
<string
, Route
>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:204
▸ partition<This
, K2
>(fn
, thisArg
): [Collection
<K2
, Route
>, Collection
<Exclude
<string
, K2
>, Route
>]
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => key is K2 |
thisArg | This |
Returns
[Collection
<K2
, Route
>, Collection
<Exclude
<string
, K2
>, Route
>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:205
▸ partition<This
, V2
>(fn
, thisArg
): [Collection
<string
, V2
>, Collection
<string
, Exclude
<Route
, V2
>>]
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends Route <V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => value is V2 |
thisArg | This |
Returns
[Collection
<string
, V2
>, Collection
<string
, Exclude
<Route
, V2
>>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:206
▸ partition<This
>(fn
, thisArg
): [Collection
<string
, Route
>, Collection
<string
, Route
>]
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | This |
Returns
[Collection
<string
, Route
>, Collection
<string
, Route
>]
Inherited from
Store.partition
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:207
random
▸ random(): undefined
| Route
Returns
undefined
| Route
Inherited from
Store.random
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:117
▸ random(amount
): Route
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
Route
[]
Inherited from
Store.random
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:118
randomKey
▸ randomKey(): undefined
| string
Returns
undefined
| string
Inherited from
Store.randomKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:126
▸ randomKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Store.randomKey
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:127
reduce
▸ reduce<T
>(fn
, initialValue?
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (accumulator : T , value : Route , key : string , collection : RouteStore ) => T | |
initialValue? | T |
Returns
T
Inherited from
Store.reduce
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:283
registerPath
▸ registerPath(path
): RouteStore
Parameters
Name | Type | Description |
---|---|---|
path | string |
Returns
Inherited from
Store.registerPath
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:305
resolve
▸ resolve(name
): Route
Parameters
Name | Type | Description |
---|---|---|
name | string | Route |
Returns
Inherited from
Store.resolve
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:332
reverse
▸ reverse(): RouteStore
Returns
Inherited from
Store.reverse
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:132
set
▸ set(key
, value
): RouteStore
Parameters
Name | Type |
---|---|
key | string |
value | Route |
Returns
Inherited from
Store.set
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:27
some
▸ some(fn
): boolean
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
boolean
Inherited from
Store.some
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:254
▸ some<T
>(fn
, thisArg
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | T |
Returns
boolean
Inherited from
Store.some
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:255
sort
▸ sort(compareFunction?
): RouteStore
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <string , Route > |
Returns
Inherited from
Store.sort
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:351
sorted
▸ sorted(compareFunction?
): Collection
<string
, Route
>
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <string , Route > |
Returns
Collection
<string
, Route
>
Inherited from
Store.sorted
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:402
sweep
▸ sweep(fn
): number
Parameters
Name | Type | Description |
---|---|---|
fn | (value : Route , key : string , collection : RouteStore ) => boolean |
Returns
number
Inherited from
Store.sweep
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:173
▸ sweep<T
>(fn
, thisArg
): number
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : Route , key : string , collection : RouteStore ) => boolean |
thisArg | T |
Returns
number
Inherited from
Store.sweep
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:174
tap
▸ tap(fn
): RouteStore
Parameters
Name | Type | Description |
---|---|---|
fn | (collection : RouteStore ) => void |
Returns
Inherited from
Store.tap
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:312
▸ tap<T
>(fn
, thisArg
): RouteStore
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , collection : RouteStore ) => void |
thisArg | T |
Returns
Inherited from
Store.tap
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:313
toJSON
▸ toJSON(): Route
[]
Returns
Route
[]
Inherited from
Store.toJSON
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:403
unload
▸ unload(name
): Promise
<Route
>
Parameters
Name | Type | Description |
---|---|---|
name | string | Route |
Returns
Inherited from
Store.unload
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:318
unloadAll
▸ unloadAll(): Promise
<Route
[]>
Returns
Inherited from
Store.unloadAll
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:322
values
▸ values(): IterableIterator
<Route
>
Returns
IterableIterator
<Route
>
Inherited from
Store.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
Store.combineEntries
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:414