mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
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:
parent
266e951f40
commit
14bebfe405
1 changed files with 0 additions and 3 deletions
|
@ -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}>`,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue