decord/beta/source/actions/CommunicationDisabledActionCreators.tsx

78 lines
2.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 11400
// Function ID: 11401
// Name: CommunicationDisabledActionCreators
2026-10-12 16:32:48 +00:00
// Dependencies: [5, 4702, 6098, 2]
2026-10-12 16:32:48 +00:00
// Module 11400 (CommunicationDisabledActionCreators)
2026-10-01 14:13:23 +00:00
import _asyncToGenerator_mod from "_asyncToGenerator" /* 5 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let _asyncToGenerator = _asyncToGenerator_mod;
let obj = {
setCommunicationDisabledDuration(guildId, id, value, current, arg4, arg5) {
let userId = id;
_asyncToGenerator = value;
let closure_3 = current;
let closure_4 = arg4;
let 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-10-01 14:13:23 +00:00
} else if (tmp2 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
} else {
2026-10-02 13:37:24 +00:00
return { value: "IconComponent", 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;
2026-10-01 14:13:23 +00:00
if (null != _asyncToGenerator) {
const obj2 = guildId(userId[1])();
2026-10-01 14:13:23 +00:00
const addResult = obj2.add(_asyncToGenerator, "s");
toISOStringResult = addResult.toISOString();
}
2026-10-01 14:13:23 +00:00
const obj6 = { guildId, userId, communicationDisabledUntilTimestamp: toISOStringResult, duration: _asyncToGenerator, reason, location: _location, moderatorReportId };
const obj4 = guildId(userId[2]);
userId = 1;
guildId = 1;
2026-10-01 14:13:23 +00:00
const obj7 = { value: obj4.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;
2026-10-02 13:37:24 +00:00
return { value: "IconComponent", done: null };
}
2026-10-01 14:13:23 +00:00
} catch (tmp14) {
guildId = 3;
throw tmp14;
}
}
})();
}
};
2026-10-01 14:13:23 +00:00
const result = size.fileFinishedImporting("actions/CommunicationDisabledActionCreators.tsx");
export default obj;