decord/source/actions/CommunicationDisabledActionCreators.tsx

76 lines
2.4 KiB
TypeScript
Raw Normal View History

// Module ID: 11972
// Function ID: 11973
// Name: CommunicationDisabledActionCreators
// Dependencies: [5, 4228, 5601, 2]
2026-07-20 16:05:17 +00:00
// Module 11972 (CommunicationDisabledActionCreators)
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("actions/CommunicationDisabledActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
setCommunicationDisabledDuration(arg0, id, value, current, arg4, arg5) {
closure_0 = arg0;
closure_1 = id;
asyncGeneratorStep = value;
2026-08-24 06:08:38 +00:00
closure_3 = current;
closure_4 = arg4;
closure_5 = arg5;
return (async (arg0, value) => {
if (guildId === 2) {
guildId = 3;
throw new TypeError("Generator functions may not be called on executing generators");
2026-07-29 08:29:29 +00:00
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
2026-07-29 08:29:29 +00:00
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
guildId = 2;
if (0 === userId) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
guildId = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
guildId = 3;
const obj5 = { value, done: true };
return obj5;
2026-07-29 08:29:29 +00:00
} else {
let toISOStringResult = null;
if (null != duration) {
const obj2 = guildId(userId[1])();
toISOStringResult = guildId(userId[1])().add(tmp20, "s").toISOString();
const addResult = guildId(userId[1])().add(tmp20, "s");
2026-07-29 08:29:29 +00:00
}
const obj6 = { guildId, userId, communicationDisabledUntilTimestamp: toISOStringResult, duration, reason, location: _location, moderatorReportId };
userId = 1;
guildId = 1;
const obj7 = { value: guildId(userId[2]).setCommunicationDisabledUntil(obj6), done: false };
return obj7;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
guildId = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
guildId = 3;
const obj = { value, done: true };
2026-07-29 08:29:29 +00:00
return obj;
} else {
guildId = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp15) {
guildId = tmp;
2026-07-29 08:29:29 +00:00
throw tmp15;
}
}
})();
2026-07-20 16:05:17 +00:00
}
};