decord/source/modules/guild_automod/AutomodFeedback.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

41 lines
1.8 KiB
TypeScript

// Module ID: 7532
// Function ID: 7533
// Name: AutomodFeedback
// Dependencies: [1114, 2]
// Exports: generateFeedbackOptions, getMostImportantRaidResolutionType
// Module 7532 (AutomodFeedback)
import util from "util" /* 1114 */;
import size from "module_2" /* 2 */;
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");
export { Feedback };
export const generateFeedbackOptions = function generateFeedbackOptions() {
const obj = { name: null, value: null };
const intl = util.intl;
obj.name = intl.string(util.t["+MbOX4"]);
obj.value = obj.BUG;
const items = [obj, ];
obj2 = { name: null, value: null };
const intl2 = util.intl;
obj2.name = intl2.string(util.t.CRsCRC);
obj2.value = obj.ALLOWED;
items[1] = obj2;
return items;
};
export const RaidAlertType = { JOIN_RAID: "JOIN_RAID", MENTION_RAID: "MENTION_RAID" };
export const RaidResolutionType = obj2;
export const getMostImportantRaidResolutionType = function getMostImportantRaidResolutionType(c3) {
if (c3.includes(obj2.LEGITIMATE_ACTIVITY)) {
let DM_SPAM = tmp.LEGITIMATE_ACTIVITY;
} else if (c3.includes(tmp.DM_SPAM)) {
DM_SPAM = tmp.DM_SPAM;
} else {
DM_SPAM = c3.includes(tmp.JOIN_RAID) ? tmp.JOIN_RAID : tmp.OTHER;
}
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" };