Fix infraction callbacks not working (hopefully)

This commit is contained in:
nolan 2021-06-20 20:44:13 -07:00
parent ee6959d814
commit 9bb60e9c24

View File

@ -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,