Fix a bunch of linter errors
diff --git a/src/events/guildBanAdd.ts b/src/events/guildBanAdd.ts
index c5d269b..dd723d3 100644
--- a/src/events/guildBanAdd.ts
+++ b/src/events/guildBanAdd.ts
@@ -6,11 +6,20 @@
export async function callback(client, ban) {
await statsChannelRemove(client, ban.user);
purgeByUser(ban.user.id, ban.guild);
- const { log, NucleusColors, entry, renderUser, renderDelta, getAuditLog } = ban.user.client.logger;
+ const { log, NucleusColors, entry, renderUser, renderDelta, getAuditLog } =
+ ban.user.client.logger;
const auditLog = await getAuditLog(ban.guild, "MEMBER_BAN_ADD");
- const audit = auditLog.entries.filter(entry => entry.target.id === ban.user.id).first();
+ const audit = auditLog.entries
+ .filter((entry) => entry.target.id === ban.user.id)
+ .first();
if (audit.executor.id === client.user.id) return;
- await client.database.history.create("ban", ban.guild.id, ban.user, audit.executor, audit.reason);
+ await client.database.history.create(
+ "ban",
+ ban.guild.id,
+ ban.user,
+ audit.executor,
+ audit.reason
+ );
const data = {
meta: {
type: "memberBan",
@@ -23,10 +32,19 @@
list: {
memberId: entry(ban.user.id, `\`${ban.user.id}\``),
name: entry(ban.user.id, renderUser(ban.user)),
- banned: entry(new Date().getTime(), renderDelta(new Date().getTime())),
+ banned: entry(
+ new Date().getTime(),
+ renderDelta(new Date().getTime())
+ ),
bannedBy: entry(audit.executor.id, renderUser(audit.executor)),
- reason: entry(audit.reason, audit.reason ? `\n> ${audit.reason}` : "*No reason provided.*"),
- accountCreated: entry(ban.user.createdAt, renderDelta(ban.user.createdAt)),
+ reason: entry(
+ audit.reason,
+ audit.reason ? `\n> ${audit.reason}` : "*No reason provided.*"
+ ),
+ accountCreated: entry(
+ ban.user.createdAt,
+ renderDelta(ban.user.createdAt)
+ ),
serverMemberCount: ban.guild.memberCount
},
hidden: {