mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: await
This commit is contained in:
parent
c54091b2b4
commit
d064b1b802
@ -106,7 +106,7 @@ export class Collectors {
|
|||||||
const collectors = this.values.get(name);
|
const collectors = this.values.get(name);
|
||||||
if (!collectors) return;
|
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) {
|
for (const i of collectors) {
|
||||||
if (await i.options.filter(data as never)) {
|
if (await i.options.filter(data as never)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user