Skip to main content

CollectionSweeper

Documentation


Documentation / @discordeno/utils / CollectionSweeper

Interface: CollectionSweeper<K, V>

Defined in: packages/utils/src/Collection.ts:159

Type Parameters​

K​

K

V​

V

Properties​

bot?​

optional bot?: PlaceHolderBot

Defined in: packages/utils/src/Collection.ts:165

The bot object itself


filter​

filter: (value, key, ...args) => boolean

Defined in: packages/utils/src/Collection.ts:161

The filter to determine whether an element should be deleted or not

Parameters​

value​

V

key​

K

args​

...any[]

Returns​

boolean


interval​

interval: number

Defined in: packages/utils/src/Collection.ts:163

The interval in which the sweeper should run