Fix missing error code handling when posting case logs
This commit is contained in:
parent
7ceb503d07
commit
00aeab6cdd
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ export class CasesPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
try {
|
||||
result = await caseLogChannel.createMessage(content, file);
|
||||
} catch (e) {
|
||||
if (isDiscordRESTError(e) && e.code === 50013) {
|
||||
if (isDiscordRESTError(e) && (e.code === 50013 || e.code === 50001)) {
|
||||
logger.warn(
|
||||
`Missing permissions to post mod cases in <#${caseLogChannel.id}> in guild ${this.guild.name} (${this.guild.id})`,
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue