decord/source/modules/guild_automod/AutomodAlert.tsx

43 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 6749
2026-07-24 07:16:23 +00:00
// Function ID: 52552
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-23 10:11:24 +00:00
// Module 6749 (AutomodAlertActionType)
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 {
let parsed = null;
if (null != arg0) {
const _JSON = JSON;
parsed = JSON.parse(arg0);
}
while (true) {
let tmp4 = null;
if (null == parsed) {
break;
} else {
tmp4 = null;
if (null == parsed.actions) {
break;
} else {
let tmp5 = globalThis;
let _Object = Object;
let keys = Object.keys(parsed.actions);
let item = keys.forEach((actionType) => {
parsed.actions[actionType].actionType = actionType;
});
tmp4 = parsed;
2026-07-23 10:11:24 +00:00
break;
2026-07-20 16:05:17 +00:00
}
}
return tmp4;
}
}
};