huge changes once again
diff --git a/src/events/memberJoin.ts b/src/events/memberJoin.ts
index 317cc3a..f3c4d18 100644
--- a/src/events/memberJoin.ts
+++ b/src/events/memberJoin.ts
@@ -1,6 +1,8 @@
import { callback as statsChannelAdd } from '../automations/statsChannelAdd.js';
import { callback as welcome } from '../automations/welcome.js';
import log from '../utils/log.js';
+import client from '../utils/client.js';
+
export const event = 'guildMemberAdd'
export async function callback(_, member) {
@@ -8,6 +10,7 @@
try { statsChannelAdd(_, member); } catch {}
try {
const { log, NucleusColors, entry, renderUser, renderDelta } = member.client.logger
+ try { await client.database.history.create("join", member.guild.id, member.user, null, null) } catch {}
let data = {
meta: {
type: 'memberJoin',
@@ -28,6 +31,6 @@
guild: member.guild.id
}
}
- log(data, member.client);
+ log(data);
} catch {}
}