Files
providers/src/entrypoint/providers.ts
2024-01-02 20:12:28 +01:00

11 lines
336 B
TypeScript

import { gatherAllEmbeds, gatherAllSources } from '@/providers/all';
import { Embed, Sourcerer } from '@/providers/base';
export function getBuiltinSources(): Sourcerer[] {
return gatherAllSources().filter((v) => !v.disabled);
}
export function getBuiltinEmbeds(): Embed[] {
return gatherAllEmbeds().filter((v) => !v.disabled);
}