feat(moderation): add additional channel to skip in message capture logic

This commit is contained in:
MythEclipse
2026-05-31 19:04:03 +07:00
parent f386e6deba
commit c30785a978
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ export function shouldCaptureMessageLocation(
): boolean {
if (
message.channelId === "1310988070996414494" ||
message.channelId === "1265679542144467035"
message.channelId === "1265679542144467035" ||
message.channelId === "1310867899745046558"
)
return false; // Skip specific channels
if (!message.guildId || message.guildId !== target.guildId) return false;
@@ -39,5 +39,12 @@ describe("shouldCaptureMessageLocation", () => {
{ guildId: "guild-1" },
),
).toBe(false);
expect(
shouldCaptureMessageLocation(
{ guildId: "guild-1", channelId: "1310867899745046558" },
{ guildId: "guild-1" },
),
).toBe(false);
});
});