From 9bb60e9c2444ef556edaf9a58fd5924014f6eb17 Mon Sep 17 00:00:00 2001 From: nolan Date: Sun, 20 Jun 2021 20:44:13 -0700 Subject: [PATCH] Fix infraction callbacks not working (hopefully) --- structure/moderation/ModerationManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/structure/moderation/ModerationManager.js b/structure/moderation/ModerationManager.js index b72ad9f..bc2cd12 100644 --- a/structure/moderation/ModerationManager.js +++ b/structure/moderation/ModerationManager.js @@ -364,6 +364,7 @@ class ModerationManager { const executor = guild.members.resolve(i.executor) || guild.me; await new undoClass(this.client, { + type: undoClass.type, reason: `AUTO-${Constant.Opposites[i.type]} from Case ${i.case}`, channel: guild.channels.resolve(i.channel), hyperlink: i.modLogMessage && i.modLogChannel ? `https://discord.com/channels/${i.guild}/${i.modLogChannel}/${i.modLogMessage}` : null,