decord/source/actions/PruneGuildModalActionCreators.tsx

40 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15373
// Function ID: 117208
2026-07-23 10:11:24 +00:00
// Dependencies: [5, 653, 507, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 15373
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("actions/PruneGuildModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
updateEstimate(arg0) {
let num = arg1;
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
num = 7;
}
const callback = arg2;
// CreateGeneratorClosureLongIndex (0x67)
return callback(tmp)();
},
updateEstimateV2(id, first) {
let num = first;
2026-07-23 10:11:24 +00:00
let closure_0 = id;
2026-07-20 16:05:17 +00:00
if (first === undefined) {
num = 7;
}
const callback = arg2;
// CreateGeneratorClosureLongIndex (0x67)
return callback(tmp)();
},
prune(arg0, days, include_roles) {
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
obj = { url: Endpoints.GUILD_PRUNE(arg0), body: obj, oldFormErrors: true };
obj = { days, compute_prune_count: false, include_roles, rejectWithError: require(507) /* _isNativeReflectConstruct */.rejectWithMigratedError() };
2026-07-20 16:05:17 +00:00
return HTTP.post(obj);
}
};