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.
This commit is contained in:
Dragory 2020-12-18 05:26:29 +02:00
parent 266e951f40
commit 14bebfe405
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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}>`,
});