swc/crates/swc_bundler/tests/.cache/deno/5b39c728a33db72f3a0c4ab79cbb0298732aae5c.ts

10 lines
378 B
TypeScript
Raw Normal View History

// 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);
}