decord/source/modules/guild_automod/AutomodAlert.tsx

43 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 5773
// Function ID: 5774
2026-07-20 16:05:17 +00:00
// Name: AutomodAlertActionType
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: parseAlertActionsExecution
2026-07-29 08:29:29 +00:00
// Module 5773 (AutomodAlertActionType)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/guild_automod/AutomodAlert.tsx");
2026-07-20 16:05:17 +00:00
export const AutomodAlertActionType = { SET_COMPLETED: 1, [1]: "SET_COMPLETED", UNSET_COMPLETED: 2, [2]: "UNSET_COMPLETED", DELETE_USER_MESSAGE: 3, [3]: "DELETE_USER_MESSAGE", SUBMIT_FEEDBACK: 4, [4]: "SUBMIT_FEEDBACK" };
export const parseAlertActionsExecution = function parseAlertActionsExecution(arg0) {
if (null == arg0) {
return null;
} else {
2026-07-29 08:29:29 +00:00
const tmp = (function safeJsonParse(arg0) {
if (null == arg0) {
return null;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
try {
const _JSON = JSON;
return JSON.parse(arg0);
} catch (err) {
return tmp;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
})(arg0);
let closure_0 = tmp;
let tmp2 = null;
if (null != tmp) {
tmp2 = null;
if (null != tmp.actions) {
const _Object = Object;
const keys = Object.keys(tmp.actions);
const item = keys.forEach((actionType) => {
tmp.actions[actionType].actionType = actionType;
});
tmp2 = tmp;
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}
};