decord/source/actions/CommunicationDisabledActionCreators.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

75 lines
2.4 KiB
TypeScript

// Module ID: 11972
// Function ID: 11973
// Name: CommunicationDisabledActionCreators
// Dependencies: [5, 4228, 5601, 2]
// Module 11972 (CommunicationDisabledActionCreators)
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
const size = fn(2);
const result = size.fileFinishedImporting("actions/CommunicationDisabledActionCreators.tsx");
export default {
setCommunicationDisabledDuration(arg0, id, value, current, arg4, arg5) {
closure_0 = arg0;
closure_1 = id;
asyncGeneratorStep = value;
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");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
guildId = 2;
if (0 === userId) {
if (arg0 === 1) {
guildId = 3;
throw value;
} else if (arg0 === 2) {
guildId = 3;
const obj5 = { value, done: true };
return obj5;
} 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");
}
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;
}
} else if (arg0 === 1) {
guildId = 3;
throw value;
} else if (arg0 === 2) {
guildId = 3;
const obj = { value, done: true };
return obj;
} else {
guildId = 3;
return { value: "HermesInternal", done: null };
}
} catch (tmp15) {
guildId = tmp;
throw tmp15;
}
}
})();
}
};