From 2b0b69f804f50ba7dab1546cda33eb59a3bad847 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Sat, 19 Aug 2023 19:32:30 +0300 Subject: [PATCH] fix(bot-discord): fix reporting to logs --- apps/bot-discord/src/commands/exileMemberCtx.js | 2 +- apps/bot-discord/src/msgCommands/exile.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/bot-discord/src/commands/exileMemberCtx.js b/apps/bot-discord/src/commands/exileMemberCtx.js index c58c546..9a9ed52 100644 --- a/apps/bot-discord/src/commands/exileMemberCtx.js +++ b/apps/bot-discord/src/commands/exileMemberCtx.js @@ -30,7 +30,7 @@ export default { exileMemberToChannel(targetMsg.author, interaction.channel, targetMsg.content, null, config); reportToLogs(config, interaction.client, 'exiled', null, { - reason, + reason: null, actionTo: targetMsg.author, actionBy: interaction.member, channel: interaction.channel, diff --git a/apps/bot-discord/src/msgCommands/exile.js b/apps/bot-discord/src/msgCommands/exile.js index 866f373..3939110 100644 --- a/apps/bot-discord/src/msgCommands/exile.js +++ b/apps/bot-discord/src/msgCommands/exile.js @@ -27,8 +27,8 @@ export default { exileMemberToChannel(referencedMsg.author, msg.channel, message, null, config, false); - reportToLogs(config, interaction.client, 'exiled', null, { - reason, + reportToLogs(config, msg.client, 'exiled', null, { + reason: null, actionTo: referencedMsg.author, actionBy: msg.member, channel: msg.channel,