decord/alpha/source/modules/guild_automod/AutomodFeedback.tsx

42 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 7233
// Function ID: 7234
// Name: AutomodFeedback
2026-10-03 08:58:59 +00:00
// Dependencies: [1126, 2]
2026-07-20 16:05:17 +00:00
// Exports: generateFeedbackOptions, getMostImportantRaidResolutionType
2026-10-09 10:00:15 +00:00
// Module 7233 (AutomodFeedback)
2026-10-03 08:58:59 +00:00
import intl3 from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const Feedback = { BUG: "BUG", ALLOWED: "ALLOWED", MENTION_RAID_REMOVE_RESTRICTION: "MENTION_RAID_REMOVE_RESTRICTION" };
let obj2 = { LEGITIMATE_ACTIVITY: "LEGITIMATE_ACTIVITY", LEGITIMATE_ACCOUNTS: "LEGITIMATE_ACCOUNTS", LEGITIMATE_DMS: "LEGITIMATE_DMS", DM_SPAM: "DM_SPAM", JOIN_RAID: "JOIN_RAID", OTHER: "OTHER" };
const result = size.fileFinishedImporting("modules/guild_automod/AutomodFeedback.tsx");
2026-07-20 16:05:17 +00:00
export { Feedback };
2026-07-20 16:05:17 +00:00
export const generateFeedbackOptions = function generateFeedbackOptions() {
2026-10-03 08:58:59 +00:00
let intl;
let intl2;
let obj;
obj = { name: intl.string(intl3.t["+MbOX4"]), value: obj.BUG };
intl = intl3.intl;
2026-07-20 16:05:17 +00:00
const items = [obj, ];
2026-10-03 08:58:59 +00:00
obj2 = { name: intl2.string(intl3.t.CRsCRC), value: obj.ALLOWED };
intl2 = intl3.intl;
items[1] = obj2;
2026-07-20 16:05:17 +00:00
return items;
};
export const RaidAlertType = { JOIN_RAID: "JOIN_RAID", MENTION_RAID: "MENTION_RAID" };
export const RaidResolutionType = obj2;
2026-07-29 08:29:29 +00:00
export const getMostImportantRaidResolutionType = function getMostImportantRaidResolutionType(c3) {
2026-10-03 08:58:59 +00:00
let DM_SPAM;
if (c3.includes(obj2.LEGITIMATE_ACTIVITY)) {
2026-10-03 08:58:59 +00:00
DM_SPAM = tmp.LEGITIMATE_ACTIVITY;
} else if (c3.includes(obj2.DM_SPAM)) {
2026-07-29 08:29:29 +00:00
DM_SPAM = tmp.DM_SPAM;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
DM_SPAM = c3.includes(tmp.JOIN_RAID) ? tmp.JOIN_RAID : tmp.OTHER;
2026-07-20 16:05:17 +00:00
}
return DM_SPAM;
};
export const RaidLockdownFeedbackType = { DM_SPAM: "DM_SPAM", MENTION_SPAM: "MENTION_SPAM", CHANNEL_SPAM: "CHANNEL_SPAM", SUS_NEW_MEMBERS: "SUS_NEW_MEMBERS", CHANGING_SETTINGS: "CHANGING_SETTINGS", OTHER: "OTHER" };