FC
FC
SIASapphire - Imagine a framework
Created by WhacK on 7/22/2024 in #sapphire-support
manual task compiler error
something like this:
this.container.tasks.create({ name: 'delete-message', payload: { message } }, { delay: offset })
this.container.tasks.create({ name: 'delete-message', payload: { message } }, { delay: offset })
15 replies
SIASapphire - Imagine a framework
Created by WhacK on 7/22/2024 in #sapphire-support
manual task compiler error
Yeah, it seems the readme isn't updated. You have to provide the payload with the task name in the first argument https://github.com/sapphiredev/plugins/blob/d6024cd53f8f1d085788dcc7037c72add8a9291c/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts#L88
15 replies