From d064b1b802266d7512187dbfe42b9d60615443bc Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sun, 4 Aug 2024 00:32:38 +0000 Subject: [PATCH] fix: await --- src/client/collectors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/collectors.ts b/src/client/collectors.ts index 47ede72..7ed18a3 100644 --- a/src/client/collectors.ts +++ b/src/client/collectors.ts @@ -106,7 +106,7 @@ export class Collectors { const collectors = this.values.get(name); if (!collectors) return; - const data = RawEvents[name]?.(client, raw as never) ?? raw; + const data = (await RawEvents[name]?.(client, raw as never)) ?? raw; for (const i of collectors) { if (await i.options.filter(data as never)) {