This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
// Metro module 16455 (f16456).
import { Endpoints } from "../../Constants";
import Dispatcher from "../../Dispatcher";
import { HTTP } from "../../_bundle/sendRequest";
export function batchChannelUpdate(a0, a1) {
if (!(a1.length <= 0)) {
const onEnd2 = function onEnd() {
return Dispatcher.dispatch({
type: "GUILD_SETTINGS_SUBMIT_SUCCESS"
});
};
Dispatcher.dispatch({
type: "GUILD_SETTINGS_SUBMIT"
});
HTTP.patch({
url: Endpoints.GUILD_CHANNELS(a0),
body: a1,
oldFormErrors: true,
rejectWithError: true
}).then(onEnd2, onEnd2);
}
}
export function batchRoleUpdate(a0, a1) {
if (!(a1.length <= 0)) {
const onEnd2 = function onEnd() {
return Dispatcher.dispatch({
type: "GUILD_SETTINGS_SUBMIT_SUCCESS"
});
};
Dispatcher.dispatch({
type: "GUILD_SETTINGS_SUBMIT"
});
HTTP.patch({
url: Endpoints.GUILD_ROLES(a0),
body: a1,
oldFormErrors: true,
rejectWithError: true
}).then(onEnd2, onEnd2);
}
}
const r17 = {
batchChannelUpdate,
batchRoleUpdate
};
export default r17;