swc/crates/swc_bundler/tests/.cache/deno/5b39c728a33db72f3a0c4ab79cbb0298732aae5c.ts
2021-11-09 20:42:49 +09:00

10 lines
378 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/helpers/channels/category_children.ts
import { cacheHandlers } from "../../cache.ts";
/** Gets an array of all the channels ids that are the children of this category. */
export async function categoryChildren(id: bigint) {
return await cacheHandlers.filter("channels", (channel) => channel.parentId === id);
}