Files
discord-decomp/sources/modules/guild_automod/AutomodFeedback.tsx
T
2026-07-28 01:06:53 +03:00

44 lines
2.9 KiB
TypeScript

/* Metro module 5061; source: modules/guild_automod/AutomodFeedback.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun43767(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5239:6, offset: 0x0115dc12, size: 311 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/guild_automod/AutomodFeedback.tsx');
exports.Feedback = {BUG: 'BUG', ALLOWED: 'ALLOWED',
MENTION_RAID_REMOVE_RESTRICTION: 'MENTION_RAID_REMOVE_RESTRICTION'};
exports.generateFeedbackOptions = generateFeedbackOptions;
exports.RaidAlertType = {JOIN_RAID: 'JOIN_RAID', MENTION_RAID: 'MENTION_RAID'};
exports.RaidResolutionType = {LEGITIMATE_ACTIVITY: 'LEGITIMATE_ACTIVITY',
LEGITIMATE_ACCOUNTS: 'LEGITIMATE_ACCOUNTS', LEGITIMATE_DMS: 'LEGITIMATE_DMS', DM_SPAM: 'DM_SPAM',
JOIN_RAID: 'JOIN_RAID', OTHER: 'OTHER'};
exports.getMostImportantRaidResolutionType = getMostImportantRaidResolutionType;
exports.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'};
function generateFeedbackOptions() { // fn#43768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5239:838, offset: 0x0115dd49, size: 157 bytes, params: 1, frame: 17
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const binding = env0_2;
const BUG = binding.BUG;
const items2 = [{name: Reflect.apply(string, intl, [t['+MbOX4']]), value: BUG}];
string = intl.string;
const CRsCRC = t.CRsCRC;
const ALLOWED = binding.ALLOWED;
items2[1] = {name: Reflect.apply(string, intl, [CRsCRC]), value: ALLOWED};
return items2;
}
function getMostImportantRaidResolutionType(a0) { // fn#43769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5239:1081, offset: 0x0115dde6, size: 119 bytes, params: 2, frame: 12
const includes = a0.includes;
const LEGITIMATE_ACTIVITY = env0_3.LEGITIMATE_ACTIVITY;
return Reflect.apply(includes, a0,
[LEGITIMATE_ACTIVITY]) ? env0_3.LEGITIMATE_ACTIVITY : a0.includes(env0_3.DM_SPAM) ? env0_3.DM_SPAM : a0.includes(env0_3.JOIN_RAID) ? env0_3.JOIN_RAID : env0_3.OTHER;
}
}
global.__d(_fun43767, 5061, [1244, 2]) /* metro module 5061, dependencies: [1244, 2] */;