Class: ScheduledTaskStore
A store for managing scheduled tasks.
Extends
Store
<ScheduledTask
,"scheduled-tasks"
>
Constructors
new ScheduledTaskStore()
new ScheduledTaskStore():
ScheduledTaskStore
Returns
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
Parameter | Type |
---|---|
key | string |
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
Parameter | Type |
---|---|
key | string |
value | ScheduledTask <never , ScheduledTaskOptions > |
Returns
this
Overrides
Store.set