* Paginate through all scheduled tasks in this bucket * * Note that only a small number is returned each call (25 as of writing, may change) so * if you need to scan through all of them you need to paginate using BucketListOptions.afterId * * En
(options?: BucketListOptions)
| 287 | * Entries are sorted by increasing ID |
| 288 | */ |
| 289 | async getMany(options?: BucketListOptions): Promise<Task<T>[]> { |
| 290 | const tasks = await OpWrappers.tasks.getAllTasks({ |
| 291 | namespace: this.name, |
| 292 | scope: this.pluginId |
| 293 | ? { kind: "Plugin", plugin_id: this.pluginId } |
| 294 | : { kind: "Guild" } |
| 295 | }, options?.afterId ?? 0); |
| 296 | |
| 297 | return tasks.map(v => convertInternalTask(v)) |
| 298 | } |
| 299 | |
| 300 | } |
| 301 |
no test coverage detected