decord/source/actions/native/GuildActionCreators.tsx

43 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16381
// Function ID: 127787
2026-07-20 16:05:17 +00:00
// Name: batchChannelUpdate
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 686, 507, 2]
2026-07-20 16:05:17 +00:00
// Exports: batchChannelUpdate, batchRoleUpdate
2026-07-27 11:26:19 +00:00
// Module 16381 (batchChannelUpdate)
2026-07-23 10:11:24 +00:00
import { Endpoints } from "ME";
function batchChannelUpdate(outer1_0, body) {
2026-07-20 16:05:17 +00:00
function onEnd() {
2026-07-23 10:11:24 +00:00
return outer1_1(outer1_2[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
2026-07-20 16:05:17 +00:00
}
if (body.length > 0) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "GUILD_SETTINGS_SUBMIT" };
obj.dispatch(obj);
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
obj = { url: Endpoints.GUILD_CHANNELS(outer1_0), body, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-07-23 10:11:24 +00:00
function batchRoleUpdate(outer1_0, body) {
2026-07-20 16:05:17 +00:00
function onEnd() {
2026-07-23 10:11:24 +00:00
return outer1_1(outer1_2[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
2026-07-20 16:05:17 +00:00
}
if (body.length > 0) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "GUILD_SETTINGS_SUBMIT" };
obj.dispatch(obj);
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
obj = { url: Endpoints.GUILD_ROLES(outer1_0), body, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("actions/native/GuildActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default { batchChannelUpdate, batchRoleUpdate };
export { batchChannelUpdate };
export { batchRoleUpdate };