decord/source/actions/native/GuildActionCreators.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 17536
// Function ID: 17537
// Name: batchChannelUpdate
// Dependencies: [673, 706, 527, 2]
// Exports: batchChannelUpdate, batchRoleUpdate
// Module 17536 (batchChannelUpdate)
import set from "set" /* 2 */;
import sendRequest from "sendRequest" /* 527 */;
import ME from "ME" /* 673 */;
import dispatcherDefault from "dispatcher" /* 706 */;
function batchChannelUpdate(closure_1_0) {
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
let obj = dispatcherDefault;
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = sendRequest.HTTP;
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
obj[0] = Endpoints.GUILD_CHANNELS(closure_1_0);
obj[1] = arg1;
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
function batchRoleUpdate(closure_1_0) {
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
let obj = dispatcherDefault;
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = sendRequest.HTTP;
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
obj[0] = Endpoints.GUILD_ROLES(closure_1_0);
obj[1] = arg1;
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
const Endpoints = ME.Endpoints;
const result = set.fileFinishedImporting("actions/native/GuildActionCreators.tsx");
export default { batchChannelUpdate, batchRoleUpdate };
export { batchChannelUpdate };
export { batchRoleUpdate };