Skip to main content

Class: ScheduledTaskStore

A store for managing scheduled tasks.

Extends

Constructors

new ScheduledTaskStore()

new ScheduledTaskStore(): ScheduledTaskStore

Returns

ScheduledTaskStore

Overrides

Store<ScheduledTask, 'scheduled-tasks'>.constructor

Defined in

lib/structures/ScheduledTaskStore.ts:10

Properties

repeatedTasks

readonly repeatedTasks: ScheduledTask<never, ScheduledTaskOptions>[] = []

Defined in

lib/structures/ScheduledTaskStore.ts:8

Methods

clear()

clear(): void

Returns

void

Overrides

Store.clear

Defined in

lib/structures/ScheduledTaskStore.ts:31


delete()

delete(key: string): boolean

Parameters

ParameterType
keystring

Returns

boolean

true if an element in the Map existed and has been removed, or false if the element does not exist.

Overrides

Store.delete

Defined in

lib/structures/ScheduledTaskStore.ts:22


set()

set(key: string, value: ScheduledTask<never, ScheduledTaskOptions>): this

Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

Parameters

ParameterType
keystring
valueScheduledTask<never, ScheduledTaskOptions>

Returns

this

Overrides

Store.set

Defined in

lib/structures/ScheduledTaskStore.ts:14