MCPcopy Create free account
hub / github.com/Botloader/botloader / getMany

Method getMany

components/runtime/src/ts/scheduled_tasks.ts:289–298  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 2

countAllFunction · 0.80
countAllFunction · 0.80

Calls 1

convertInternalTaskFunction · 0.85

Tested by

no test coverage detected