fix: await

This commit is contained in:
MARCROCK22 2024-08-04 00:32:38 +00:00
parent c54091b2b4
commit d064b1b802

View File

@ -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)) {