I hereby decree that this document shall no longer contain the substring " == ", and hereafter shall be referred to as " === ". This amendment shall take effect immediately.
Signed-off-by: pineafan <pineapplefanyt@gmail.com>
diff --git a/src/events/webhookUpdate.ts b/src/events/webhookUpdate.ts
index 66b1cd0..28768b2 100644
--- a/src/events/webhookUpdate.ts
+++ b/src/events/webhookUpdate.ts
@@ -8,9 +8,9 @@
let auditLogUpdate = getAuditLog(channel.guild, 'WEBHOOK_UPDATE');
let auditLogDelete = getAuditLog(channel.guild, 'WEBHOOK_DELETE');
[auditLogCreate, auditLogUpdate, auditLogDelete] = await Promise.all([auditLogCreate, auditLogUpdate, auditLogDelete]);
- let auditCreate = auditLogCreate.entries.filter(entry => entry.target.channelId == channel.id).first();
- let auditUpdate = auditLogUpdate.entries.filter(entry => entry.target.channelId == channel.id).first();
- let auditDelete = auditLogDelete.entries.filter(entry => entry.target.channelId == channel.id).first();
+ let auditCreate = auditLogCreate.entries.filter(entry => entry.target.channelId === channel.id).first();
+ let auditUpdate = auditLogUpdate.entries.filter(entry => entry.target.channelId === channel.id).first();
+ let auditDelete = auditLogDelete.entries.filter(entry => entry.target.channelId === channel.id).first();
if (!auditCreate && !auditUpdate && !auditDelete) return;
let audit = auditCreate;
let action = "Create";