mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix: await cacheHandlers.filter
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { cacheHandlers } from "../../cache.ts";
|
||||
|
||||
/** Gets an array of all the channels ids that are the children of this category. */
|
||||
export function categoryChildren(id: bigint) {
|
||||
return cacheHandlers.filter(
|
||||
export async function categoryChildren(id: bigint) {
|
||||
return await cacheHandlers.filter(
|
||||
"channels",
|
||||
(channel) => channel.parentId === id,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user