Class: InteractionHandlerStore
Hierarchy
↳
InteractionHandlerStore
Constructors
constructor
• new InteractionHandlerStore()
Overrides
Defined in
projects/framework/src/lib/structures/InteractionHandlerStore.ts:8
Properties
Constructor
• Readonly
Constructor: AbstractConstructor
<InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:284
[toStringTag]
• Readonly
[toStringTag]: string
Inherited from
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
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:285
paths
• Readonly
paths: Set
<string
>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:286
size
• Readonly
size: number
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:48
strategy
• Readonly
strategy: ILoaderStrategy
<InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:287
[species]
▪ Static
Readonly
[species]: MapConstructor
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:317
defaultStrategy
▪ Static
defaultStrategy: ILoaderStrategy
<any
>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:372
logger
▪ Static
logger: null
| StoreLogger
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:376
Accessors
container
• get
container(): Container
Returns
Container
Inherited from
Store.container
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:297
Methods
[iterator]
▸ [iterator](): IterableIterator
<[string
, InteractionHandler
<InteractionHandlerOptions
>]>
Returns
IterableIterator
<[string
, InteractionHandler
<InteractionHandlerOptions
>]>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:121
at
▸ at(index
): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:98
clear
▸ clear(): void
Returns
void
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:23
clone
▸ clone(): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:328
concat
▸ concat(...collections
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Parameters
Name | Type | Description |
---|---|---|
...collections | ReadonlyCollection <string , InteractionHandler <InteractionHandlerOptions >>[] |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:338
construct
▸ construct(Ctor
, data
): InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type | Description |
---|---|---|
Ctor | ILoaderResultEntry <InteractionHandler <InteractionHandlerOptions >> | |
data | HydratedModuleData |
Returns
InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:348
delete
▸ delete(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:27
difference
▸ difference<T
>(other
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
> | T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
> | T
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:378
each
▸ each(fn
): InteractionHandlerStore
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => void |
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:303
▸ each<T
>(fn
, thisArg
): InteractionHandlerStore
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => void |
thisArg | T |
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:304
ensure
▸ ensure(key
, defaultValueGenerator
): InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type | Description |
---|---|---|
key | string | |
defaultValueGenerator | (key : string , collection : InteractionHandlerStore ) => InteractionHandler <InteractionHandlerOptions > |
Returns
InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:41
entries
▸ entries(): IterableIterator
<[string
, InteractionHandler
<InteractionHandlerOptions
>]>
Returns
IterableIterator
<[string
, InteractionHandler
<InteractionHandlerOptions
>]>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:126
equals
▸ equals(collection
): boolean
Parameters
Name | Type | Description |
---|---|---|
collection | ReadonlyCollection <string , InteractionHandler <InteractionHandlerOptions >> |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:347
every
▸ every<K2
>(fn
): this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
Returns
this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:269
▸ every<V2
>(fn
): this is Collection<string, V2>
Type parameters
Name | Type |
---|---|
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
Returns
this is Collection<string, V2>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:270
▸ every(fn
): boolean
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:271
▸ every<This
, K2
>(fn
, thisArg
): this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
thisArg | This |
Returns
this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:272
▸ every<This
, V2
>(fn
, thisArg
): this is Collection<string, V2>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
thisArg | This |
Returns
this is Collection<string, V2>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:273
▸ every<This
>(fn
, thisArg
): boolean
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | This |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:274
filter
▸ filter<K2
>(fn
): Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
Returns
Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:183
▸ filter<V2
>(fn
): Collection
<string
, V2
>
Type parameters
Name | Type |
---|---|
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
Returns
Collection
<string
, V2
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:184
▸ filter(fn
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:185
▸ filter<This
, K2
>(fn
, thisArg
): Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
thisArg | This |
Returns
Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:186
▸ filter<This
, V2
>(fn
, thisArg
): Collection
<string
, V2
>
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
thisArg | This |
Returns
Collection
<string
, V2
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:187
▸ filter<This
>(fn
, thisArg
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | This |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:188
find
▸ find<V2
>(fn
): undefined
| V2
Type parameters
Name | Type |
---|---|
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
Returns
undefined
| V2
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:142
▸ find(fn
): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:143
▸ find<This
, V2
>(fn
, thisArg
): undefined
| V2
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
thisArg | This |
Returns
undefined
| V2
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:144
▸ find<This
>(fn
, thisArg
): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | This |
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:145
findKey
▸ findKey<K2
>(fn
): undefined
| K2
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
Returns
undefined
| K2
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:158
▸ findKey(fn
): undefined
| string
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:159
▸ findKey<This
, K2
>(fn
, thisArg
): undefined
| K2
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
thisArg | This |
Returns
undefined
| K2
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:160
▸ findKey<This
>(fn
, thisArg
): undefined
| string
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | This |
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:161
first
▸ first(): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:62
▸ first(amount
): InteractionHandler
<InteractionHandlerOptions
>[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
InteractionHandler
<InteractionHandlerOptions
>[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:63
firstKey
▸ firstKey(): undefined
| string
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:71
▸ firstKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:72
flatMap
▸ flatMap<T
>(fn
): Collection
<string
, T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => Collection <string , T > |
Returns
Collection
<string
, T
>
Inherited from
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
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => Collection <string , T > |
thisArg | This |
Returns
Collection
<string
, T
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:218
forEach
▸ forEach(callbackfn
, thisArg?
): void
Parameters
Name | Type |
---|---|
callbackfn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , map : Map <string , InteractionHandler <InteractionHandlerOptions >>) => void |
thisArg? | any |
Returns
void
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:31
get
▸ get(key
): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type |
---|---|
key | string |
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:36
has
▸ has(key
): boolean
Parameters
Name | Type |
---|---|
key | string |
Returns
boolean
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:40
hasAll
▸ hasAll(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | string [] |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:48
hasAny
▸ hasAny(...keys
): boolean
Parameters
Name | Type | Description |
---|---|---|
...keys | string [] |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:55
insert
▸ insert(piece
): Promise
<InteractionHandler
<InteractionHandlerOptions
>>
Parameters
Name | Type | Description |
---|---|---|
piece | InteractionHandler <InteractionHandlerOptions > |
Returns
Promise
<InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:341
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
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:366
keyAt
▸ keyAt(index
): undefined
| string
Parameters
Name | Type | Description |
---|---|---|
index | number |
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:106
keys
▸ keys(): IterableIterator
<string
>
Returns
IterableIterator
<string
>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:131
last
▸ last(): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:80
▸ last(amount
): InteractionHandler
<InteractionHandlerOptions
>[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
InteractionHandler
<InteractionHandlerOptions
>[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:81
lastKey
▸ lastKey(): undefined
| string
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:89
▸ lastKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:90
load
▸ load(root
, path
): Promise
<InteractionHandler
<InteractionHandlerOptions
>[]>
Parameters
Name | Type | Description |
---|---|---|
root | string | |
path | string |
Returns
Promise
<InteractionHandler
<InteractionHandlerOptions
>[]>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:315
loadAll
▸ loadAll(): Promise
<void
>
Returns
Promise
<void
>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:329
map
▸ map<T
>(fn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => T |
Returns
T
[]
Inherited from
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 : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => T |
thisArg | This |
Returns
T
[]
Inherited from
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 : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => T |
Returns
Collection
<string
, T
>
Inherited from
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
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => T |
thisArg | This |
Returns
Collection
<string
, T
>
Inherited from
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
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > | |
whenInSelf | (value : InteractionHandler <InteractionHandlerOptions >, key : string ) => Keep <R > | |
whenInOther | (valueOther : T , key : string ) => Keep <R > | |
whenInBoth | (value : InteractionHandler <InteractionHandlerOptions >, valueOther : T , key : string ) => Keep <R > |
Returns
Collection
<string
, R
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:407
partition
▸ partition<K2
>(fn
): [Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<Exclude
<string
, K2
>, InteractionHandler
<InteractionHandlerOptions
>>]
Type parameters
Name | Type |
---|---|
K2 | extends string |
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
Returns
[Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<Exclude
<string
, K2
>, InteractionHandler
<InteractionHandlerOptions
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:200
▸ partition<V2
>(fn
): [Collection
<string
, V2
>, Collection
<string
, Exclude
<InteractionHandler
<InteractionHandlerOptions
>, V2
>>]
Type parameters
Name | Type |
---|---|
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
Returns
[Collection
<string
, V2
>, Collection
<string
, Exclude
<InteractionHandler
<InteractionHandlerOptions
>, V2
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:201
▸ partition(fn
): [Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>]
Parameters
Name | Type |
---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
[Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:202
▸ partition<This
, K2
>(fn
, thisArg
): [Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<Exclude
<string
, K2
>, InteractionHandler
<InteractionHandlerOptions
>>]
Type parameters
Name | Type |
---|---|
This | This |
K2 | extends string |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => key is K2 |
thisArg | This |
Returns
[Collection
<K2
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<Exclude
<string
, K2
>, InteractionHandler
<InteractionHandlerOptions
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:203
▸ partition<This
, V2
>(fn
, thisArg
): [Collection
<string
, V2
>, Collection
<string
, Exclude
<InteractionHandler
<InteractionHandlerOptions
>, V2
>>]
Type parameters
Name | Type |
---|---|
This | This |
V2 | extends InteractionHandler <InteractionHandlerOptions , V2 > |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => value is V2 |
thisArg | This |
Returns
[Collection
<string
, V2
>, Collection
<string
, Exclude
<InteractionHandler
<InteractionHandlerOptions
>, V2
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:204
▸ partition<This
>(fn
, thisArg
): [Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>]
Type parameters
Name |
---|
This |
Parameters
Name | Type |
---|---|
fn | (this : This , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | This |
Returns
[Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>, Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:205
random
▸ random(): undefined
| InteractionHandler
<InteractionHandlerOptions
>
Returns
undefined
| InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:113
▸ random(amount
): InteractionHandler
<InteractionHandlerOptions
>[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
InteractionHandler
<InteractionHandlerOptions
>[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:114
randomKey
▸ randomKey(): undefined
| string
Returns
undefined
| string
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:121
▸ randomKey(amount
): string
[]
Parameters
Name | Type |
---|---|
amount | number |
Returns
string
[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:122
reduce
▸ reduce<T
>(fn
, initialValue?
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
fn | (accumulator : T , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => T | |
initialValue? | T |
Returns
T
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:287
registerPath
▸ registerPath(path
): InteractionHandlerStore
Parameters
Name | Type | Description |
---|---|---|
path | Path |
Returns
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:308
resolve
▸ resolve(name
): InteractionHandler
<InteractionHandlerOptions
>
Parameters
Name | Type | Description |
---|---|---|
name | string | InteractionHandler <InteractionHandlerOptions > |
Returns
InteractionHandler
<InteractionHandlerOptions
>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:335
reverse
▸ reverse(): InteractionHandlerStore
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:127
run
▸ run(interaction
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
interaction | Interaction <CacheType > |
Returns
Promise
<boolean
>
Defined in
projects/framework/src/lib/structures/InteractionHandlerStore.ts:12
set
▸ set(key
, value
): InteractionHandlerStore
Parameters
Name | Type |
---|---|
key | string |
value | InteractionHandler <InteractionHandlerOptions > |
Returns
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.collection.d.ts:44
some
▸ some(fn
): boolean
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:256
▸ some<T
>(fn
, thisArg
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | T |
Returns
boolean
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:257
sort
▸ sort(compareFunction?
): InteractionHandlerStore
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <string , InteractionHandler <InteractionHandlerOptions >> |
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:360
sorted
▸ sorted(compareFunction?
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Parameters
Name | Type | Description |
---|---|---|
compareFunction? | Comparator <string , InteractionHandler <InteractionHandlerOptions >> |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:421
subtract
▸ subtract<T
>(other
): Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type | Description |
---|---|---|
other | ReadonlyCollection <string , T > |
Returns
Collection
<string
, InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:372
sweep
▸ sweep(fn
): number
Parameters
Name | Type | Description |
---|---|---|
fn | (value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
Returns
number
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:169
▸ sweep<T
>(fn
, thisArg
): number
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , value : InteractionHandler <InteractionHandlerOptions >, key : string , collection : InteractionHandlerStore ) => unknown |
thisArg | T |
Returns
number
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:170
tap
▸ tap(fn
): InteractionHandlerStore
Parameters
Name | Type | Description |
---|---|---|
fn | (collection : InteractionHandlerStore ) => void |
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:318
▸ tap<T
>(fn
, thisArg
): InteractionHandlerStore
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (this : T , collection : InteractionHandlerStore ) => void |
thisArg | T |
Returns
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:319
toJSON
▸ toJSON(): InteractionHandler
<InteractionHandlerOptions
>[]
Returns
InteractionHandler
<InteractionHandlerOptions
>[]
Inherited from
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:422
unload
▸ unload(name
): Promise
<InteractionHandler
<InteractionHandlerOptions
>>
Parameters
Name | Type | Description |
---|---|---|
name | string | InteractionHandler <InteractionHandlerOptions > |
Returns
Promise
<InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:321
unloadAll
▸ unloadAll(): Promise
<InteractionHandler
<InteractionHandlerOptions
>[]>
Returns
Promise
<InteractionHandler
<InteractionHandlerOptions
>[]>
Inherited from
Defined in
node_modules/@sapphire/pieces/dist/index.d.ts:325
values
▸ values(): IterableIterator
<InteractionHandler
<InteractionHandlerOptions
>>
Returns
IterableIterator
<InteractionHandler
<InteractionHandlerOptions
>>
Inherited from
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
Defined in
node_modules/@discordjs/collection/dist/index.d.ts:435