Fix all missing await issues (eslint)
diff --git a/src/reflex/statsChannelUpdate.ts b/src/reflex/statsChannelUpdate.ts
index e3c7a2a..f2650a8 100644
--- a/src/reflex/statsChannelUpdate.ts
+++ b/src/reflex/statsChannelUpdate.ts
@@ -12,7 +12,7 @@
export async function callback(user: User, guild: Guild) {
guild = await client.guilds.fetch(guild.id);
const config = await client.database.guilds.read(guild.id);
- Object.entries(config.stats).forEach(async ([channel, props]) => {
+ Object.entries(config.stats).forEach(([channel, props]) => void (async () => {
if ((props as PropSchema).enabled) {
let string = (props as PropSchema).name;
if (!string) return;
@@ -41,5 +41,5 @@
console.error(e);
}
}
- });
+ })());
}