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";
|
import { cacheHandlers } from "../../cache.ts";
|
||||||
|
|
||||||
/** Gets an array of all the channels ids that are the children of this category. */
|
/** Gets an array of all the channels ids that are the children of this category. */
|
||||||
export function categoryChildren(id: bigint) {
|
export async function categoryChildren(id: bigint) {
|
||||||
return cacheHandlers.filter(
|
return await cacheHandlers.filter(
|
||||||
"channels",
|
"channels",
|
||||||
(channel) => channel.parentId === id,
|
(channel) => channel.parentId === id,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user