(options?: ListOptions)
| 133 | * |
| 134 | */ |
| 135 | export async function getMany(options?: ListOptions): Promise<ScheduledTask[]> { |
| 136 | const tasks = await OpWrappers.tasks.getAllTasks({ |
| 137 | namespace: options?.namespace ?? null, |
| 138 | scope: { kind: "Guild" }, |
| 139 | }, options?.afterId ?? 0); |
| 140 | |
| 141 | return tasks.map(v => convertInternalTask(v)) |
| 142 | } |
| 143 | |
| 144 | export interface ListOptions { |
| 145 | /** |
nothing calls this directly
no test coverage detected