huge changes once again
diff --git a/src/events/guildMemberUpdate.ts b/src/events/guildMemberUpdate.ts
index a1601bb..2175aaf 100644
--- a/src/events/guildMemberUpdate.ts
+++ b/src/events/guildMemberUpdate.ts
@@ -10,6 +10,9 @@
let auditLog = await getAuditLog(after.guild, 'MEMBER_UPDATE');
let audit = auditLog.entries.filter(entry => entry.target.id == after.id).first();
if (audit.executor.id == client.user.id) return;
+ try { await client.database.history.create(
+ "nickname", after.guild.id, after.user, audit.executor,
+ null, before.nickname || before.user.username, after.nickname || after.user.username) } catch {}
let data = {
meta: {
type: 'memberUpdate',
@@ -30,7 +33,7 @@
guild: after.guild.id
}
}
- log(data, after.client);
+ log(data);
}
} catch (e) { console.log(e) }
}