decord/source/modules/guild_automod/AutomodFeedback.tsx
2026-08-05 07:35:12 +00:00

38 lines
1.8 KiB
TypeScript

// Module ID: 6871
// Function ID: 6872
// Name: Feedback
// Dependencies: [1236, 2]
// Exports: generateFeedbackOptions, getMostImportantRaidResolutionType
// Module 6871 (Feedback)
let obj = { BUG: "BUG", ALLOWED: "ALLOWED", MENTION_RAID_REMOVE_RESTRICTION: "MENTION_RAID_REMOVE_RESTRICTION" };
obj = { LEGITIMATE_ACTIVITY: "LEGITIMATE_ACTIVITY", LEGITIMATE_ACCOUNTS: "LEGITIMATE_ACCOUNTS", LEGITIMATE_DMS: "LEGITIMATE_DMS", DM_SPAM: "DM_SPAM", JOIN_RAID: "JOIN_RAID", OTHER: "OTHER" };
const result = require("set").fileFinishedImporting("modules/guild_automod/AutomodFeedback.tsx");
export const Feedback = obj;
export const generateFeedbackOptions = function generateFeedbackOptions() {
let obj = { name: null, value: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj[0] = intl.string(require(1236) /* getSystemLocale */.t["+MbOX4"]);
obj[1] = obj.BUG;
const items = [obj, ];
obj = { name: null, value: null };
const intl2 = require(1236) /* getSystemLocale */.intl;
obj[0] = intl2.string(require(1236) /* getSystemLocale */.t.CRsCRC);
obj[1] = obj.ALLOWED;
items[1] = obj;
return items;
};
export const RaidAlertType = { JOIN_RAID: "JOIN_RAID", MENTION_RAID: "MENTION_RAID" };
export const RaidResolutionType = obj;
export const getMostImportantRaidResolutionType = function getMostImportantRaidResolutionType(c3) {
if (c3.includes(obj.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" };