decord/source/actions/native/GuildActionCreators.tsx

49 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16930
// Function ID: 16931
2026-07-20 16:05:17 +00:00
// Name: batchChannelUpdate
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 709, 530, 2]
2026-07-20 16:05:17 +00:00
// Exports: batchChannelUpdate, batchRoleUpdate
2026-08-24 06:08:38 +00:00
// Module 16930 (batchChannelUpdate)
import set from "set" /* 2 */;
import sendRequest from "sendRequest" /* 530 */;
import ME from "ME" /* 676 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
function batchChannelUpdate(closure_1_0) {
2026-07-29 08:29:29 +00:00
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
2026-08-24 06:08:38 +00:00
const HTTP = sendRequest.HTTP;
2026-07-29 08:29:29 +00:00
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
2026-08-24 06:08:38 +00:00
obj[0] = Endpoints.GUILD_CHANNELS(closure_1_0);
2026-07-29 08:29:29 +00:00
obj[1] = arg1;
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-08-24 06:08:38 +00:00
function batchRoleUpdate(closure_1_0) {
2026-07-29 08:29:29 +00:00
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
2026-08-24 06:08:38 +00:00
const HTTP = sendRequest.HTTP;
2026-07-29 08:29:29 +00:00
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
2026-08-24 06:08:38 +00:00
obj[0] = Endpoints.GUILD_ROLES(closure_1_0);
2026-07-29 08:29:29 +00:00
obj[1] = arg1;
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-08-24 06:08:38 +00:00
const Endpoints = ME.Endpoints;
const result = set.fileFinishedImporting("actions/native/GuildActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default { batchChannelUpdate, batchRoleUpdate };
export { batchChannelUpdate };
export { batchRoleUpdate };