feat(moderation): skip message capture for specific channels in shouldCaptureMessageLocation
This commit is contained in:
1 parent
b938420eb3
commit
394bd5a471
2 files changed
+17
No files matched your search
@@ -34,6 +34,7 @@ export function shouldCaptureMessageLocation(
|
||||
message: MessageLocationInput,
|
||||
target: TextCaptureTarget,
|
||||
): boolean {
|
||||
if (message.channelId === "1310988070996414494" || message.channelId === "1265679542144467035") return false; // Skip specific channels
|
||||
if (!message.guildId || message.guildId !== target.guildId) return false;
|
||||
if (target.channelId && message.channelId !== target.channelId) return false;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user