Skip to main content

Class: ScheduledTask

@sapphire/plugin-scheduled-tasks.ScheduledTask

Hierarchy

  • Piece

    ScheduledTask

Constructors

constructor

new ScheduledTask(context, options)

Parameters

NameType
contextPieceContext
optionsScheduledTaskOptions

Overrides

Piece.constructor

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/structures/ScheduledTask.ts:8

Properties

cron

Readonly cron: null | string

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/structures/ScheduledTask.ts:6


interval

Readonly interval: null | number

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/structures/ScheduledTask.ts:5

Methods

run

Abstract run(payload): unknown

Parameters

NameType
payloadunknown

Returns

unknown

Defined in

projects/plugins/packages/scheduled-tasks/src/lib/structures/ScheduledTask.ts:14