From 80081515ac85339eabf74df5ead6cf10d2c54d0a Mon Sep 17 00:00:00 2001 From: Navy Date: Sun, 27 Oct 2024 22:20:58 +0200 Subject: [PATCH] Bugfix for infractions being logged wrong --- src/client/components/managers/ModerationManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/components/managers/ModerationManager.ts b/src/client/components/managers/ModerationManager.ts index 1806e48..3e253f0 100644 --- a/src/client/components/managers/ModerationManager.ts +++ b/src/client/components/managers/ModerationManager.ts @@ -579,13 +579,13 @@ class ModerationManager implements Initialisable, CallbackClient const dmBefore = [ 'BAN', 'KICK', 'SOFTBAN' ].includes(infraction.type); if (dmBefore) - await infraction.handle(); + await response.infraction.handle(); const result = await response.infraction.execute(); if (!result.error) { if (!dmBefore) - await infraction.handle(); - await infraction.save(); + await response.infraction.handle(); + await response.infraction.save(); } // Infraction doesn't have an ID until it is executed, hence this after execute