feat(moderation): add additional channel to skip in message capture logic
This commit is contained in:
@@ -36,7 +36,8 @@ export function shouldCaptureMessageLocation(
|
|||||||
): boolean {
|
): boolean {
|
||||||
if (
|
if (
|
||||||
message.channelId === "1310988070996414494" ||
|
message.channelId === "1310988070996414494" ||
|
||||||
message.channelId === "1265679542144467035"
|
message.channelId === "1265679542144467035" ||
|
||||||
|
message.channelId === "1310867899745046558"
|
||||||
)
|
)
|
||||||
return false; // Skip specific channels
|
return false; // Skip specific channels
|
||||||
if (!message.guildId || message.guildId !== target.guildId) return false;
|
if (!message.guildId || message.guildId !== target.guildId) return false;
|
||||||
|
|||||||
@@ -39,5 +39,12 @@ describe("shouldCaptureMessageLocation", () => {
|
|||||||
{ guildId: "guild-1" },
|
{ guildId: "guild-1" },
|
||||||
),
|
),
|
||||||
).toBe(false);
|
).toBe(false);
|
||||||
|
|
||||||
|
expect(
|
||||||
|
shouldCaptureMessageLocation(
|
||||||
|
{ guildId: "guild-1", channelId: "1310867899745046558" },
|
||||||
|
{ guildId: "guild-1" },
|
||||||
|
),
|
||||||
|
).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user