Skip to main content

Class: InteractionHandlerStore

Hierarchy

Constructors

constructor

new InteractionHandlerStore()

Overrides

Store.constructor

Defined in

projects/framework/src/lib/structures/InteractionHandlerStore.ts:8

Properties

Constructor

Readonly Constructor: AbstractConstructor<InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.Constructor

Defined in

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


[toStringTag]

Readonly [toStringTag]: string

Inherited from

Store.[toStringTag]

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/collection.d.ts:21


name

Readonly name: string

Inherited from

Store.name

Defined in

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


paths

Readonly paths: Set<string>

Inherited from

Store.paths

Defined in

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


size

Readonly size: number

Inherited from

Store.size

Defined in

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


strategy

Readonly strategy: ILoaderStrategy<InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.strategy

Defined in

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


[species]

Static Readonly [species]: MapConstructor

Inherited from

Store.[species]

Defined in

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


defaultStrategy

Static defaultStrategy: ILoaderStrategy<any>

Inherited from

Store.defaultStrategy

Defined in

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


logger

Static logger: null | StoreLogger

Inherited from

Store.logger

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

Store.[iterator]

Defined in

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


at

at(index): undefined | InteractionHandler<InteractionHandlerOptions>

Parameters

NameTypeDescription
indexnumber

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.at

Defined in

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


clear

clear(): void

Returns

void

Inherited from

Store.clear

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

Store.clone

Defined in

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


concat

concat(...collections): Collection<string, InteractionHandler<InteractionHandlerOptions>>

Parameters

NameTypeDescription
...collectionsReadonlyCollection<string, InteractionHandler<InteractionHandlerOptions>>[]

Returns

Collection<string, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.concat

Defined in

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


construct

construct(Ctor, data): InteractionHandler<InteractionHandlerOptions>

Parameters

NameTypeDescription
CtorILoaderResultEntry<InteractionHandler<InteractionHandlerOptions>>
dataHydratedModuleData

Returns

InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.construct

Defined in

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


delete

delete(key): boolean

Parameters

NameType
keystring

Returns

boolean

Inherited from

Store.delete

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

NameTypeDescription
otherReadonlyCollection<string, T>

Returns

Collection<string, InteractionHandler<InteractionHandlerOptions> | T>

Inherited from

Store.difference

Defined in

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


each

each(fn): InteractionHandlerStore

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => void

Returns

InteractionHandlerStore

Inherited from

Store.each

Defined in

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

each<T>(fn, thisArg): InteractionHandlerStore

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => void
thisArgT

Returns

InteractionHandlerStore

Inherited from

Store.each

Defined in

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


ensure

ensure(key, defaultValueGenerator): InteractionHandler<InteractionHandlerOptions>

Parameters

NameTypeDescription
keystring
defaultValueGenerator(key: string, collection: InteractionHandlerStore) => InteractionHandler<InteractionHandlerOptions>

Returns

InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.ensure

Defined in

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


entries

entries(): IterableIterator<[string, InteractionHandler<InteractionHandlerOptions>]>

Returns

IterableIterator<[string, InteractionHandler<InteractionHandlerOptions>]>

Inherited from

Store.entries

Defined in

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


equals

equals(collection): boolean

Parameters

NameTypeDescription
collectionReadonlyCollection<string, InteractionHandler<InteractionHandlerOptions>>

Returns

boolean

Inherited from

Store.equals

Defined in

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


every

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

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2

Returns

this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.every

Defined in

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

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

Type parameters

NameType
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2

Returns

this is Collection<string, V2>

Inherited from

Store.every

Defined in

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

every(fn): boolean

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

boolean

Inherited from

Store.every

Defined in

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

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

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2
thisArgThis

Returns

this is Collection<K2, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.every

Defined in

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

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

Type parameters

NameType
ThisThis
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2
thisArgThis

Returns

this is Collection<string, V2>

Inherited from

Store.every

Defined in

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

every<This>(fn, thisArg): boolean

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgThis

Returns

boolean

Inherited from

Store.every

Defined in

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


filter

filter<K2>(fn): Collection<K2, InteractionHandler<InteractionHandlerOptions>>

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2

Returns

Collection<K2, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.filter

Defined in

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

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

Type parameters

NameType
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2

Returns

Collection<string, V2>

Inherited from

Store.filter

Defined in

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

filter(fn): Collection<string, InteractionHandler<InteractionHandlerOptions>>

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

Collection<string, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.filter

Defined in

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

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

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2
thisArgThis

Returns

Collection<K2, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.filter

Defined in

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

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

Type parameters

NameType
ThisThis
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2
thisArgThis

Returns

Collection<string, V2>

Inherited from

Store.filter

Defined in

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

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

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgThis

Returns

Collection<string, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.filter

Defined in

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


find

find<V2>(fn): undefined | V2

Type parameters

NameType
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2

Returns

undefined | V2

Inherited from

Store.find

Defined in

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

find(fn): undefined | InteractionHandler<InteractionHandlerOptions>

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.find

Defined in

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

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

Type parameters

NameType
ThisThis
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2
thisArgThis

Returns

undefined | V2

Inherited from

Store.find

Defined in

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

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

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgThis

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.find

Defined in

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


findKey

findKey<K2>(fn): undefined | K2

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2

Returns

undefined | K2

Inherited from

Store.findKey

Defined in

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

findKey(fn): undefined | string

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

undefined | string

Inherited from

Store.findKey

Defined in

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

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

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2
thisArgThis

Returns

undefined | K2

Inherited from

Store.findKey

Defined in

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

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

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgThis

Returns

undefined | string

Inherited from

Store.findKey

Defined in

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


first

first(): undefined | InteractionHandler<InteractionHandlerOptions>

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.first

Defined in

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

first(amount): InteractionHandler<InteractionHandlerOptions>[]

Parameters

NameType
amountnumber

Returns

InteractionHandler<InteractionHandlerOptions>[]

Inherited from

Store.first

Defined in

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


firstKey

firstKey(): undefined | string

Returns

undefined | string

Inherited from

Store.firstKey

Defined in

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

firstKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

Store.firstKey

Defined in

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


flatMap

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => Collection<string, T>

Returns

Collection<string, T>

Inherited from

Store.flatMap

Defined in

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

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

Type parameters

Name
T
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => Collection<string, T>
thisArgThis

Returns

Collection<string, T>

Inherited from

Store.flatMap

Defined in

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


forEach

forEach(callbackfn, thisArg?): void

Parameters

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

Returns

void

Inherited from

Store.forEach

Defined in

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


get

get(key): undefined | InteractionHandler<InteractionHandlerOptions>

Parameters

NameType
keystring

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.get

Defined in

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


has

has(key): boolean

Parameters

NameType
keystring

Returns

boolean

Inherited from

Store.has

Defined in

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


hasAll

hasAll(...keys): boolean

Parameters

NameTypeDescription
...keysstring[]

Returns

boolean

Inherited from

Store.hasAll

Defined in

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


hasAny

hasAny(...keys): boolean

Parameters

NameTypeDescription
...keysstring[]

Returns

boolean

Inherited from

Store.hasAny

Defined in

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


insert

insert(piece): Promise<InteractionHandler<InteractionHandlerOptions>>

Parameters

NameTypeDescription
pieceInteractionHandler<InteractionHandlerOptions>

Returns

Promise<InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.insert

Defined in

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


intersect

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

Type parameters

Name
T

Parameters

NameTypeDescription
otherReadonlyCollection<string, T>

Returns

Collection<string, T>

Inherited from

Store.intersect

Defined in

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


keyAt

keyAt(index): undefined | string

Parameters

NameTypeDescription
indexnumber

Returns

undefined | string

Inherited from

Store.keyAt

Defined in

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


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 | InteractionHandler<InteractionHandlerOptions>

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.last

Defined in

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

last(amount): InteractionHandler<InteractionHandlerOptions>[]

Parameters

NameType
amountnumber

Returns

InteractionHandler<InteractionHandlerOptions>[]

Inherited from

Store.last

Defined in

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


lastKey

lastKey(): undefined | string

Returns

undefined | string

Inherited from

Store.lastKey

Defined in

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

lastKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

Store.lastKey

Defined in

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


load

load(root, path): Promise<InteractionHandler<InteractionHandlerOptions>[]>

Parameters

NameTypeDescription
rootstring
pathstring

Returns

Promise<InteractionHandler<InteractionHandlerOptions>[]>

Inherited from

Store.load

Defined in

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


loadAll

loadAll(): Promise<void>

Returns

Promise<void>

Inherited from

Store.loadAll

Defined in

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


map

map<T>(fn): T[]

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => T

Returns

T[]

Inherited from

Store.map

Defined in

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

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

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => T
thisArgThis

Returns

T[]

Inherited from

Store.map

Defined in

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


mapValues

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => T

Returns

Collection<string, T>

Inherited from

Store.mapValues

Defined in

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

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

Type parameters

Name
This
T

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => T
thisArgThis

Returns

Collection<string, T>

Inherited from

Store.mapValues

Defined in

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


merge

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

Type parameters

Name
T
R

Parameters

NameTypeDescription
otherReadonlyCollection<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

Store.merge

Defined in

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


partition

partition<K2>(fn): [Collection<K2, InteractionHandler<InteractionHandlerOptions>>, Collection<Exclude<string, K2>, InteractionHandler<InteractionHandlerOptions>>]

Type parameters

NameType
K2extends string

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2

Returns

[Collection<K2, InteractionHandler<InteractionHandlerOptions>>, Collection<Exclude<string, K2>, InteractionHandler<InteractionHandlerOptions>>]

Inherited from

Store.partition

Defined in

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

partition<V2>(fn): [Collection<string, V2>, Collection<string, Exclude<InteractionHandler<InteractionHandlerOptions>, V2>>]

Type parameters

NameType
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2

Returns

[Collection<string, V2>, Collection<string, Exclude<InteractionHandler<InteractionHandlerOptions>, V2>>]

Inherited from

Store.partition

Defined in

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

partition(fn): [Collection<string, InteractionHandler<InteractionHandlerOptions>>, Collection<string, InteractionHandler<InteractionHandlerOptions>>]

Parameters

NameType
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

[Collection<string, InteractionHandler<InteractionHandlerOptions>>, Collection<string, InteractionHandler<InteractionHandlerOptions>>]

Inherited from

Store.partition

Defined in

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

partition<This, K2>(fn, thisArg): [Collection<K2, InteractionHandler<InteractionHandlerOptions>>, Collection<Exclude<string, K2>, InteractionHandler<InteractionHandlerOptions>>]

Type parameters

NameType
ThisThis
K2extends string

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => key is K2
thisArgThis

Returns

[Collection<K2, InteractionHandler<InteractionHandlerOptions>>, Collection<Exclude<string, K2>, InteractionHandler<InteractionHandlerOptions>>]

Inherited from

Store.partition

Defined in

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

partition<This, V2>(fn, thisArg): [Collection<string, V2>, Collection<string, Exclude<InteractionHandler<InteractionHandlerOptions>, V2>>]

Type parameters

NameType
ThisThis
V2extends InteractionHandler<InteractionHandlerOptions, V2>

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => value is V2
thisArgThis

Returns

[Collection<string, V2>, Collection<string, Exclude<InteractionHandler<InteractionHandlerOptions>, V2>>]

Inherited from

Store.partition

Defined in

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

partition<This>(fn, thisArg): [Collection<string, InteractionHandler<InteractionHandlerOptions>>, Collection<string, InteractionHandler<InteractionHandlerOptions>>]

Type parameters

Name
This

Parameters

NameType
fn(this: This, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgThis

Returns

[Collection<string, InteractionHandler<InteractionHandlerOptions>>, Collection<string, InteractionHandler<InteractionHandlerOptions>>]

Inherited from

Store.partition

Defined in

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


random

random(): undefined | InteractionHandler<InteractionHandlerOptions>

Returns

undefined | InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.random

Defined in

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

random(amount): InteractionHandler<InteractionHandlerOptions>[]

Parameters

NameType
amountnumber

Returns

InteractionHandler<InteractionHandlerOptions>[]

Inherited from

Store.random

Defined in

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


randomKey

randomKey(): undefined | string

Returns

undefined | string

Inherited from

Store.randomKey

Defined in

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

randomKey(amount): string[]

Parameters

NameType
amountnumber

Returns

string[]

Inherited from

Store.randomKey

Defined in

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


reduce

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

Type parameters

Name
T

Parameters

NameTypeDescription
fn(accumulator: T, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => T
initialValue?T

Returns

T

Inherited from

Store.reduce

Defined in

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


registerPath

registerPath(path): InteractionHandlerStore

Parameters

NameTypeDescription
pathPath

Returns

InteractionHandlerStore

Inherited from

Store.registerPath

Defined in

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


resolve

resolve(name): InteractionHandler<InteractionHandlerOptions>

Parameters

NameTypeDescription
namestring | InteractionHandler<InteractionHandlerOptions>

Returns

InteractionHandler<InteractionHandlerOptions>

Inherited from

Store.resolve

Defined in

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


reverse

reverse(): InteractionHandlerStore

Returns

InteractionHandlerStore

Inherited from

Store.reverse

Defined in

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


run

run(interaction): Promise<boolean>

Parameters

NameType
interactionInteraction<CacheType>

Returns

Promise<boolean>

Defined in

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


set

set(key, value): InteractionHandlerStore

Parameters

NameType
keystring
valueInteractionHandler<InteractionHandlerOptions>

Returns

InteractionHandlerStore

Inherited from

Store.set

Defined in

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


some

some(fn): boolean

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

boolean

Inherited from

Store.some

Defined in

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

some<T>(fn, thisArg): boolean

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgT

Returns

boolean

Inherited from

Store.some

Defined in

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


sort

sort(compareFunction?): InteractionHandlerStore

Parameters

NameTypeDescription
compareFunction?Comparator<string, InteractionHandler<InteractionHandlerOptions>>

Returns

InteractionHandlerStore

Inherited from

Store.sort

Defined in

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


sorted

sorted(compareFunction?): Collection<string, InteractionHandler<InteractionHandlerOptions>>

Parameters

NameTypeDescription
compareFunction?Comparator<string, InteractionHandler<InteractionHandlerOptions>>

Returns

Collection<string, InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.sorted

Defined in

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


sweep

sweep(fn): number

Parameters

NameTypeDescription
fn(value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean

Returns

number

Inherited from

Store.sweep

Defined in

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

sweep<T>(fn, thisArg): number

Type parameters

Name
T

Parameters

NameType
fn(this: T, value: InteractionHandler<InteractionHandlerOptions>, key: string, collection: InteractionHandlerStore) => boolean
thisArgT

Returns

number

Inherited from

Store.sweep

Defined in

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


tap

tap(fn): InteractionHandlerStore

Parameters

NameTypeDescription
fn(collection: InteractionHandlerStore) => void

Returns

InteractionHandlerStore

Inherited from

Store.tap

Defined in

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

tap<T>(fn, thisArg): InteractionHandlerStore

Type parameters

Name
T

Parameters

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

Returns

InteractionHandlerStore

Inherited from

Store.tap

Defined in

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


toJSON

toJSON(): InteractionHandler<InteractionHandlerOptions>[]

Returns

InteractionHandler<InteractionHandlerOptions>[]

Inherited from

Store.toJSON

Defined in

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


unload

unload(name): Promise<InteractionHandler<InteractionHandlerOptions>>

Parameters

NameTypeDescription
namestring | InteractionHandler<InteractionHandlerOptions>

Returns

Promise<InteractionHandler<InteractionHandlerOptions>>

Inherited from

Store.unload

Defined in

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


unloadAll

unloadAll(): Promise<InteractionHandler<InteractionHandlerOptions>[]>

Returns

Promise<InteractionHandler<InteractionHandlerOptions>[]>

Inherited from

Store.unloadAll

Defined in

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


values

values(): IterableIterator<InteractionHandler<InteractionHandlerOptions>>

Returns

IterableIterator<InteractionHandler<InteractionHandlerOptions>>

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

NameTypeDescription
entriesIterable<[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/collection.d.ts:457