Skip to content

Commit 3265d04

Browse files
committed
Filtering out the annoying error
1 parent a4d9856 commit 3265d04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/events/messageReactionAdd.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export default event({
2222
}
2323
}
2424
} catch (error) {
25-
console.error(`Issue in messageReactionAdd: ${error}`);
25+
// Couldn't get it to raise the unwanted error in the test server, so instead of
26+
// checking for an error code we'll just filter out any errors that include this text
27+
if (!`${error}`.includes('Not performed in a monitored channel'))
28+
console.error(`Issue in messageReactionAdd: ${error}`);
2629
}
2730
},
2831
});

0 commit comments

Comments
 (0)