huge changes once again
diff --git a/src/events/guildBanAdd.ts b/src/events/guildBanAdd.ts
index 4209788..a1848fd 100644
--- a/src/events/guildBanAdd.ts
+++ b/src/events/guildBanAdd.ts
@@ -11,7 +11,7 @@
let auditLog = await getAuditLog(ban.guild, 'MEMBER_BAN_ADD')
let audit = auditLog.entries.filter(entry => entry.target.id == ban.user.id).first();
if (audit.executor.id == client.user.id) return
- console.log(ban.reason)
+ try { await client.database.history.create("ban", ban.guild.id, ban.user, audit.executor, audit.reason) } catch {}
let data = {
meta: {
type: 'memberBan',
@@ -34,6 +34,6 @@
guild: ban.guild.id
}
}
- log(data, ban.user.client);
+ log(data);
} catch {}
}