decord/source/actions/native/GuildActionCreators.tsx

45 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-13 17:34:28 +00:00
// Module ID: 16775
// Function ID: 16776
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-13 17:34:28 +00:00
// Module 16775 (batchChannelUpdate)
2026-07-23 10:11:24 +00:00
import { Endpoints } from "ME";
2026-07-29 08:29:29 +00:00
function batchChannelUpdate(outer1_0) {
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
let obj = importDefault(709);
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = require(530) /* sendRequest */.HTTP;
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
obj[0] = Endpoints.GUILD_CHANNELS(outer1_0);
obj[1] = arg1;
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-07-29 08:29:29 +00:00
function batchRoleUpdate(outer1_0) {
if (arg1.length > 0) {
function onEnd() {
return callback(table[1]).dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
let obj = importDefault(709);
obj.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = require(530) /* sendRequest */.HTTP;
obj = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
obj[0] = Endpoints.GUILD_ROLES(outer1_0);
obj[1] = arg1;
2026-07-20 16:05:17 +00:00
HTTP.patch(obj).then(onEnd, onEnd);
const patchResult = HTTP.patch(obj);
}
}
2026-07-29 08:29:29 +00:00
const result = require("sendRequest").fileFinishedImporting("actions/native/GuildActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default { batchChannelUpdate, batchRoleUpdate };
export { batchChannelUpdate };
export { batchRoleUpdate };