Fix all missing await issues (eslint)
diff --git a/src/events/memberJoin.ts b/src/events/memberJoin.ts
index 66abe28..b01eb60 100644
--- a/src/events/memberJoin.ts
+++ b/src/events/memberJoin.ts
@@ -7,9 +7,9 @@
export const event = "guildMemberAdd";
export async function callback(client: NucleusClient, member: GuildMember) {
- welcome(member);
- statsChannelAdd(member.user, member.guild);
- doMemberChecks(member, member.guild);
+ await welcome(member);
+ await statsChannelAdd(member.user, member.guild);
+ await doMemberChecks(member, member.guild);
const { log, isLogging, NucleusColors, entry, renderUser, renderDelta } = client.logger;
if (!(await isLogging(member.guild.id, "guildMemberUpdate"))) return;
await client.database.history.create("join", member.guild.id, member.user, null, null);
@@ -33,5 +33,5 @@
guild: member.guild.id
}
};
- log(data);
+ await log(data);
}