feat(moderation): skip message capture for specific channels in shouldCaptureMessageLocation

This commit is contained in:
MythEclipse
2026-05-30 00:37:20 +07:00
parent b938420eb3
commit 394bd5a471
2 changed files with 17 additions and 0 deletions
@@ -24,4 +24,20 @@ describe("shouldCaptureMessageLocation", () => {
),
).toBe(false);
});
it("skips ignored channels", () => {
expect(
shouldCaptureMessageLocation(
{ guildId: "guild-1", channelId: "1310988070996414494" },
{ guildId: "guild-1" },
),
).toBe(false);
expect(
shouldCaptureMessageLocation(
{ guildId: "guild-1", channelId: "1265679542144467035" },
{ guildId: "guild-1" },
),
).toBe(false);
});
});