processors
) and the schedule in which they will be run on. This is configured in the app's extendConfiguration
method. During the app's startup, the processors are registered to make them available for scheduling.processor
is an async
function and can receive arguments (jobData
). The arguments are passed during scheduling.id
of the processor, the type of job it will be and optionally an object (data
) that will be passed to the processor as argument (jobData
). Available types are RECURRING
, making the job run in a interval
, and ONETIME
, making the job run only once (when
). Starting a job can be done when running a slashcommand, for example:extendConfiguration
method, you can pass a prop called startupSetting
in the processor's object:StartupType.RECURRING
) or a one-time job (StartupType.ONETIME
). You can also pass data using the data
object. It will work just like when you schedule a task using the modify
accessor.data
) here is not something that's passed to the processor or function as a living object or executable code. This (data
) is a static piece of data that are passed to the processor's first argument.[k: string]:any
) . Rest are passed when the function is run.