Skip to main content

CollectionSweeper

@discordeno/bot


Documentation / @discordeno/bot / CollectionSweeper

Interface: CollectionSweeper<K, V>

Defined in: packages/utils/dist/types/Collection.d.ts:49

Type Parameters

K

V

Properties

bot?

optional bot: PlaceHolderBot

Defined in: packages/utils/dist/types/Collection.d.ts:55

The bot object itself


filter()

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

Defined in: packages/utils/dist/types/Collection.d.ts:51

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/dist/types/Collection.d.ts:53

The interval in which the sweeper should run