decord/source/actions/native/GuildActionCreators.tsx
2026-09-03 10:05:34 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 17456
// Function ID: 17457
// Name: batchChannelUpdate
// Dependencies: [673, 706, 527, 2]
// Exports: batchChannelUpdate, batchRoleUpdate
// Module 17456 (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 };