decord/source/actions/native/GuildActionCreators.tsx

49 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 17456
// Function ID: 17457
2026-07-20 16:05:17 +00:00
// Name: batchChannelUpdate
2026-09-02 09:53:35 +00:00
// Dependencies: [673, 706, 527, 2]
2026-07-20 16:05:17 +00:00
// Exports: batchChannelUpdate, batchRoleUpdate
2026-09-03 10:05:34 +00:00
// Module 17456 (batchChannelUpdate)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import sendRequest from "sendRequest" /* 527 */;
import ME from "ME" /* 673 */;
import dispatcherDefault from "dispatcher" /* 706 */;
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 };