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);
|
result = await caseLogChannel.createMessage(content, file);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (isDiscordRESTError(e) && (e.code === 50013 || e.code === 50001)) {
|
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, {
|
pluginData.state.logs.log(LogType.BOT_ALERT, {
|
||||||
body: `Missing permissions to post mod cases in <#${caseLogChannel.id}>`,
|
body: `Missing permissions to post mod cases in <#${caseLogChannel.id}>`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue