decord/stable/source/actions/native/GuildActionCreators.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

42 lines
1.6 KiB
TypeScript

// Module ID: 17731
// Function ID: 17732
// Name: actions/GuildActionCreators
// Dependencies: [1074, 573, 1270, 2]
// Exports: batchChannelUpdate, batchRoleUpdate
// Module 17731 (actions/GuildActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import HTTPUtils from "HTTPUtils" /* 1270 */;
import size from "module_2" /* 2 */;
function batchChannelUpdate(guildId, body) {
if (body.length > 0) {
function onEnd() {
return DispatcherDefault.dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
DispatcherDefault.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = HTTPUtils.HTTP;
const request = { url: Endpoints.GUILD_CHANNELS(guildId), body, oldFormErrors: true, rejectWithError: true };
HTTP.patch(request).then(onEnd, onEnd);
const patchResult = HTTP.patch(request);
}
}
function batchRoleUpdate(arg0, body) {
if (body.length > 0) {
function onEnd() {
return DispatcherDefault.dispatch({ type: "GUILD_SETTINGS_SUBMIT_SUCCESS" });
}
DispatcherDefault.dispatch({ type: "GUILD_SETTINGS_SUBMIT" });
const HTTP = HTTPUtils.HTTP;
const request = { url: Endpoints.GUILD_ROLES(arg0), body, oldFormErrors: true, rejectWithError: true };
HTTP.patch(request).then(onEnd, onEnd);
const patchResult = HTTP.patch(request);
}
}
const Endpoints = Constants.Endpoints;
const result = size.fileFinishedImporting("actions/native/GuildActionCreators.tsx");
export default { batchChannelUpdate, batchRoleUpdate };
export { batchChannelUpdate };
export { batchRoleUpdate };