decord/source/modules/guild_identity/GuildIdentityActionCreators.tsx
2026-07-27 11:26:19 +00:00

43 lines
1.9 KiB
TypeScript

// Module ID: 9741
// Function ID: 75852
// Name: _saveGuildIdentityChanges
// Dependencies: [5, 653, 686, 507, 7888, 7885, 2]
// Exports: clearErrors, initGuildIdentitySettings, resetAllPending, resetPendingMemberChanges, resetPendingProfileChanges, saveGuildIdentityChanges, setCurrentGuild
// Module 9741 (_saveGuildIdentityChanges)
import SafetyScannedUploadSurface from "SafetyScannedUploadSurface";
import { Endpoints } from "ME";
const require = arg1;
function _saveGuildIdentityChanges() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
const result = require("dispatcher").fileFinishedImporting("modules/guild_identity/GuildIdentityActionCreators.tsx");
export const saveGuildIdentityChanges = function saveGuildIdentityChanges(id, guildMemberChangesForUpdateRequest) {
return _saveGuildIdentityChanges(...arguments);
};
export const setCurrentGuild = function setCurrentGuild(id) {
let obj = importDefault(686);
obj = { type: "USER_PROFILE_SETTINGS_SET_GUILD", guildId: id };
obj.dispatch(obj);
};
export const initGuildIdentitySettings = function initGuildIdentitySettings(id) {
let obj = importDefault(686);
obj = { type: "USER_PROFILE_SETTINGS_INIT", guildId: id };
obj.dispatch(obj);
};
export const resetPendingMemberChanges = function resetPendingMemberChanges() {
importDefault(686).dispatch({ type: "USER_PROFILE_SETTINGS_RESET_PENDING_ACCOUNT_CHANGES" });
};
export const resetPendingProfileChanges = function resetPendingProfileChanges() {
importDefault(686).dispatch({ type: "USER_PROFILE_SETTINGS_RESET_PENDING_PROFILE_CHANGES" });
};
export const resetAllPending = function resetAllPending() {
importDefault(686).dispatch({ type: "USER_PROFILE_SETTINGS_RESET_PENDING_CHANGES" });
};
export const clearErrors = function clearErrors() {
importDefault(686).dispatch({ type: "USER_PROFILE_SETTINGS_CLEAR_ERRORS" });
};