Skip to main content

Interface: ScheduledTaskOptions

@sapphire/plugin-scheduled-tasks.ScheduledTaskOptions

Options for configuring a scheduled task.

Hierarchy

  • Options

    ScheduledTaskOptions

Properties

customJobOptions

Optional customJobOptions: ScheduledTaskCustomJobOptions

Custom options to pass to the job scheduler.

Defined in

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


enabled

Optional Readonly enabled: boolean

Whether or not the piece should be enabled. If set to false, the piece will be unloaded.

Default

true

Inherited from

Piece.Options.enabled

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:163


interval

Optional interval: null | number

The interval (in milliseconds) at which the task should run.

Defined in

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


name

Optional Readonly name: string

The name for the piece.

Default

''

Inherited from

Piece.Options.name

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:158


pattern

Optional pattern: null | string

A cron pattern specifying when the task should run.

Defined in

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