From 14bebfe40566b239a171cc830a8f4384db825304 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 18 Dec 2020 05:26:29 +0200 Subject: [PATCH] Remove stderr for missing permissions to post mod cases This is generally only relevant to the server admins, and is already logged as a BOT_ALERT for them. --- backend/src/plugins/Cases/functions/postToCaseLogChannel.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/plugins/Cases/functions/postToCaseLogChannel.ts b/backend/src/plugins/Cases/functions/postToCaseLogChannel.ts index b08f0282..1874b5e9 100644 --- a/backend/src/plugins/Cases/functions/postToCaseLogChannel.ts +++ b/backend/src/plugins/Cases/functions/postToCaseLogChannel.ts @@ -24,9 +24,6 @@ export async function postToCaseLogChannel( result = await caseLogChannel.createMessage(content, file); } catch (e) { if (isDiscordRESTError(e) && (e.code === 50013 || e.code === 50001)) { - logger.warn( - `Missing permissions to post mod cases in <#${caseLogChannel.id}> in guild ${pluginData.guild.name} (${pluginData.guild.id})`, - ); pluginData.state.logs.log(LogType.BOT_ALERT, { body: `Missing permissions to post mod cases in <#${caseLogChannel.id}>`, });