decord/alpha/source/actions/native/GuildActionCreators.tsx
github-actions 97fd043558 chore: update source for alpha 347.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-19 06:52:51 +00:00

42 lines
1.6 KiB
TypeScript

// Module ID: 18039
// Function ID: 18040
// Name: actions/GuildActionCreators
// Dependencies: [1074, 573, 1271, 2]
// Exports: batchChannelUpdate, batchRoleUpdate
// Module 18039 (actions/GuildActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import HTTPUtils from "HTTPUtils" /* 1271 */;
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 };