This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
// Metro module 5763 (f5764).
import UserStore from "../../stores/UserStore";
import { ChannelTypes, UserFlags } from "../../Constants";
import { isAutomodMessageRecord } from "../guild_automod/AutomodMessageUtils";
export function isSpamSupported(a0) {
return a0 !== void 0 && a0.type !== ChannelTypes.DM;
}
export function isSpammer(a0) {
const user = UserStore.getUser(a0);
let r7 = user == null ? void 0 : user.hasFlag(UserFlags.SPAMMER);
if (r7 == null) {
r7 = false;
}
return r7;
}
export function isSpam(a0) {
const user = UserStore.getUser(a0.author.id);
let r10 = user == null ? void 0 : user.hasFlag(UserFlags.SPAMMER);
if (r10 == null) {
r10 = false;
}
if (r10) {
r10 = !isAutomodMessageRecord(a0);
}
return r10;
}