decord/source/actions/native/GuildActionCreators.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 17616
// Function ID: 17617
// Name: batchChannelUpdate
// Dependencies: [1074, 573, 1272, 2]
// Exports: batchChannelUpdate, batchRoleUpdate
// Module 17616 (batchChannelUpdate)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
import sendRequest from "sendRequest" /* 1272 */;
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 };