huge changes once again
diff --git a/src/events/memberLeave.ts b/src/events/memberLeave.ts
index 22b7cd3..50901dc 100644
--- a/src/events/memberLeave.ts
+++ b/src/events/memberLeave.ts
@@ -19,6 +19,7 @@
}
let data
if (type == "kick") {
+ try { await client.database.history.create("kick", member.guild.id, member.user, audit.executor, audit.reason) } catch {}
data = {
meta: {
type: 'memberKick',
@@ -44,6 +45,7 @@
}
}
} else {
+ try { await client.database.history.create("leave", member.guild.id, member.user, null, null) } catch {}
data = {
meta: {
type: 'memberLeave',
@@ -67,6 +69,6 @@
}
}
}
- log(data, member.client);
+ log(data);
} catch {}
}