Files
discord-decomp/sources/actions/GuildActionCreators.tsx
T
2026-07-28 01:06:53 +03:00

4268 lines
188 KiB
TypeScript

/* Metro module 6593; source: actions/GuildActionCreators.tsx; dependencies: [29, 5, 6594, 1226, 4897, 1935, 1867, 1934, 3969, 1878, 661, 1229, 4647, 1244, 694, 6595, 507, 1230, 6598, 1962, 5075, 6823, 6828, 6837, 6911, 5046, 480, 6930, 3789, 483, 6931, 3825, 683, 6935, 5072, 5087, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import ObjectWithoutProperties from '../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import GuildChannelStore from '../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import SelectedGuildStore from '../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import AlertActionCreators from './AlertActionCreators.tsx'; /* Metro dependency 4647 */
import ExpandedGuildFolderStore from '../stores/ExpandedGuildFolderStore.tsx'; /* Metro dependency 4897 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import BulkBanStore from '../modules/guild_mod_dash_member_safety/BulkBanStore.tsx'; /* Metro dependency 6594 */
import GuildTemplateTooltipActionCreators from '../modules/guild_templates/GuildTemplateTooltipActionCreators.tsx'; /* Metro dependency 6931 */
import GetPreviousSafeRouteForNsfwReturnNative from '../modules/age_gate/getPreviousSafeRouteForNsfwReturn.native.tsx'; /* Metro dependency 6935 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as AgeGateConstantsModule from '../modules/age_gate/AgeGateConstants.tsx'; /* Metro dependency 1229 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as LurkerActionCreatorsModule from '../modules/lurker_mode/LurkerActionCreators.tsx'; /* Metro dependency 6911 */
function _fun51875(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6, offset: 0x012e6b66, size: 900 bytes, params: 8, frame: 21
let env0_0 = require;
const deleteGuild2 = deleteGuild;
const closure2 = function(a0) {
var env0_0 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun51884);
return value2 instanceof Object ? value2 : value;
};
const env0_4 = ['icon', 'unicodeEmoji'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {joinGuild: function() {
return _joinGuild.apply(this, arguments);
}, waitForGuild: closure2, transitionToGuildSync: transitionToGuildSync, deleteGuild: deleteGuild2,
selectGuild: selectGuild, createGuild: createGuild, setServerMute: function(a0, a1, a2) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_MEMBER(a0, a1);
object.body = {mute: a2};
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.patch(object);
}, setServerDeaf: function(a0, a1, a2) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_MEMBER(a0, a1);
object.body = {deaf: a2};
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.patch(object);
}, setChannel: function(a0, a1, a2) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_MEMBER(a0, a1);
object.body = {channel_id: a2};
object.oldFormErrors = true;
object.rejectWithError = true;
HTTP.patch(object);
}, setMemberFlags: function(a0, a1, a2) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_MEMBER(a0, a1);
object.body = {flags: a2};
object.oldFormErrors = true;
object.rejectWithError = true;
HTTP.patch(object);
}, kickUser: kickUser, setCommunicationDisabledUntil: setCommunicationDisabledUntil, banUser: function(a0, a1, a2,
a3, a4) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_BAN(a0, a1);
object.reason = a3;
object.body = {delete_message_seconds: a2, moderator_report_id: a4};
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.put(object);
}, unbanUser: function(a0, a1) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.GUILD_BAN(a0, a1);
return HTTP.del(object);
}, banMultipleUsers: function(a0, a1, a2, a3) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.BULK_GUILD_BAN(a0);
object.body = {user_ids: a1, delete_message_seconds: a2};
object.reason = a3;
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.post(object);
}, startBulkBan: startBulkBan, createRole: createRole, updateRole: updateRole, updateRolePermissions: function(a0,
a1, a2) {
var HTTP = require(dependencyMap[16]).HTTP;
var object = {};
object.url = Endpoints.GUILD_ROLE(a0, a1);
object.body = {permissions: a2};
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.patch(object);
}, deleteRole: deleteRole, batchChannelUpdate: batchChannelUpdate, batchRoleUpdate: batchRoleUpdate,
requestMembers: requestMembers_51920, searchRecentMembers: searchRecentMembers,
requestMembersById: requestMembersById, move: move, moveById: moveById,
createGuildFolderLocal: createGuildFolderLocal, editGuildFolderLocal: editGuildFolderLocal,
deleteGuildFolderLocal: deleteGuildFolderLocal, toggleGuildFolderExpand: toggleGuildFolderExpand,
setGuildFolderExpanded: setGuildFolderExpanded, collapseAllFolders: collapseAllFolders, nsfwAgree: nsfwAgree,
nsfwReturnToSafety: nsfwReturnToSafety, spoilerAgree: spoilerAgree, clearSpoilerAgree: clearSpoilerAgree,
escapeToDefaultChannel: escapeToDefaultChannel, fetchApplications: fetchApplications,
fetchGuildBansBatch: fetchGuildBansBatch, searchGuildBans: searchGuildBans, fetchGuildBans: fetchGuildBans,
fetchGuildRoleConnectionsEligibility: fetchGuildRoleConnectionsEligibility,
assignGuildRoleConnection: assignGuildRoleConnection, unassignGuildRoleConnection: unassignGuildRoleConnection,
getGuildRoleConnectionsConfigurations: getGuildRoleConnectionsConfigurations};
(FileImportTrackerModule).fileFinishedImporting('actions/GuildActionCreators.tsx');
exports.default = object;
exports.waitForGuild = closure2;
function showTooManyUserGuildsAlert(a0) { // fn#51876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:408, offset: 0x012e6eea, size: 158 bytes, params: 2, frame: 19
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
Reflect.apply(show, defaultImport, [{title: Reflect.apply(string, intl, [t.cTaRxF]),
body: intl.formatToPlainString(t['VSd+Aj'], {quantity: a0})}]);
}
function deleteGuild(a0) { // fn#51877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:584, offset: 0x012e6f88, size: 60 bytes, params: 2, frame: 14
(Dispatcher).dispatch({type: 'GUILD_DELETE', guild: {id: a0}});
}
function _joinGuild() { // fn#51878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:662, offset: 0x012e6fc4, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun51880).apply(this, arguments);
async function _fun51880(a0) { // fn#51880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:705, offset: 0x012e7006, size: 1490 bytes, params: 2, frame: 36
var environment;
var r3;
var r10;
var r13;
var r24;
var r22;
var code;
var r7;
var value;
var value2;
var value3;
var value4;
var object;
var value5;
var source;
var loadId;
var lurkLocation;
var autoNavigate;
var lurker;
var value6;
var value7;
var binding;
var getCurrentUser;
var value8;
var hasFlag;
var QUARANTINED;
var hasFlag2;
var value9;
var wait;
var getGuildId;
var value10;
var value11;
var getGuild;
var value12;
var value13;
var getChannelId;
var value14;
var binding2;
var property;
var value15;
var HTTP;
var put;
var GUILD_JOIN;
var value16;
var object2;
var getSessionId;
var value17;
var value18;
var DIRECTORY_ENTRY;
var value19;
var object3;
var object4;
var value20;
var value21;
var value22;
var body;
var join_request;
var value23;
var binding3;
var value24;
var dispatch;
var value25;
var value26;
var show_verification_form;
var welcome_screen;
var value27;
var binding4;
var value28;
var id;
var approximate_presence_count;
var value29;
var binding5;
var value30;
var binding6;
var value31;
var paths;
var value32;
var value33;
var value34;
var value35;
var value36;
var value37;
var binding7;
var value38;
var transitionTo;
var GUILD_MEMBER_VERIFICATION;
var value39;
var error;
var USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED;
var value40;
var openAgeGateModal;
var JOIN_LARGE_GUILD_UNDERAGE;
var TOO_MANY_USER_GUILDS;
var value41;
var hasIncreasedGuildCap;
var hasIncreasedGuildCap2;
var GUILD_AT_CAPACITY;
var binding8;
var value42;
var show;
var intl;
var string;
var t;
var ZZlox4;
var ZUEGFn;
var UNKNOWN_GUILD;
var Promise;
var promise;
exceptionSkip185: while (true) {
exceptionLanding185: while (true) {
value = a1;
value2 = undefined;
value3 = false;
if (value3) {
return value2;
}
var env0_0 = a0;
value4 = undefined;
if (value !== value4) {
r3 = value;
} else {
r3 = {};
}
var env0_1 = value4;
var env0_2 = value4;
var env0_3 = value4;
await value4;
value = undefined;
value5 = false;
if (value5) {
return value;
}
source = r3.source;
env0_1 = source;
loadId = r3.loadId;
env0_2 = loadId;
lurkLocation = r3.lurkLocation;
autoNavigate = r3.autoNavigate;
value = value4 === autoNavigate;
r10 = value || autoNavigate;
lurker = r3.lurker;
value = null;
value6 = value != lurker;
r3 = value6 && lurker;
env0_3 = r3;
value7 = environment.__proto__.__proto__;
binding = env2_14;
getCurrentUser = binding.getCurrentUser;
value8 = Reflect.apply(getCurrentUser, binding, []);
if (value == value8) {
r13 = value4;
} else {
hasFlag = value8.hasFlag;
QUARANTINED = env2_18.QUARANTINED;
hasFlag2 = Reflect.apply(hasFlag, value8, [QUARANTINED]);
r13 = hasFlag2;
}
if (value == r13) {
binding = env2_1;
value9 = binding(env2_3[14]);
value9.wait(_fun51882);
try {
binding = env2_13;
} catch (error) {
break exceptionLanding185;
}
try {
getGuildId = binding.getGuildId;
} catch (error) {
break exceptionLanding185;
}
try {
value10 = Reflect.apply(getGuildId, binding, []);
} catch (error) {
break exceptionLanding185;
}
try {
value11 = a0 !== value10;
} catch (error) {
break exceptionLanding185;
}
if (!value11) {
try {
binding = env2_11;
} catch (error) {
break exceptionLanding185;
}
try {
getGuild = binding.getGuild;
} catch (error) {
break exceptionLanding185;
}
try {
value12 = Reflect.apply(getGuild, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
value13 = value != value12;
} catch (error) {
break exceptionLanding185;
}
if (value13) {
try {
binding = env2_12;
} catch (error) {
break exceptionLanding185;
}
try {
getChannelId = binding.getChannelId;
} catch (error) {
break exceptionLanding185;
}
try {
value14 = Reflect.apply(getChannelId, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
r13 = value14;
break;
}
r13 = value;
break;
}
r13 = value;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding2 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding2[16];
} catch (error) {
break exceptionLanding185;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
HTTP = value15.HTTP;
} catch (error) {
break exceptionLanding185;
}
try {
put = HTTP.put;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_16;
} catch (error) {
break exceptionLanding185;
}
try {
GUILD_JOIN = binding.GUILD_JOIN;
} catch (error) {
break exceptionLanding185;
}
try {
value16 = Reflect.apply(GUILD_JOIN, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
object.url = value16;
} catch (error) {
break exceptionLanding185;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object2.lurker = r3;
} catch (error) {
break exceptionLanding185;
}
if (r3) {
try {
binding = env2_8;
} catch (error) {
break exceptionLanding185;
}
try {
getSessionId = binding.getSessionId;
} catch (error) {
break exceptionLanding185;
}
try {
value17 = Reflect.apply(getSessionId, binding, []);
} catch (error) {
break exceptionLanding185;
}
r24 = value17;
} else {
r24 = value;
}
try {
object2.session_id = r24;
} catch (error) {
break exceptionLanding185;
}
try {
object2.recommendation_load_id = loadId;
} catch (error) {
break exceptionLanding185;
}
if (r3) {
try {
value18 = value != lurkLocation;
} catch (error) {
break exceptionLanding185;
}
if (value18) {
r22 = lurkLocation;
break;
}
r22 = value;
break;
}
r22 = value;
try {
object2.location = r22;
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_17;
} catch (error) {
break exceptionLanding185;
}
try {
DIRECTORY_ENTRY = binding.DIRECTORY_ENTRY;
} catch (error) {
break exceptionLanding185;
}
r22 = source === DIRECTORY_ENTRY || value;
try {
object2.from_directory = r22;
} catch (error) {
break exceptionLanding185;
}
try {
object.query = object2;
} catch (error) {
break exceptionLanding185;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object3.source = source;
} catch (error) {
break exceptionLanding185;
}
try {
object.context = object3;
} catch (error) {
break exceptionLanding185;
}
try {
object.oldFormErrors = true;
} catch (error) {
break exceptionLanding185;
}
try {
object4 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.body = object4;
} catch (error) {
break exceptionLanding185;
}
try {
object.rejectWithError = false;
} catch (error) {
break exceptionLanding185;
}
try {
value20 = Reflect.apply(put, HTTP, [object]);
} catch (error) {
break exceptionLanding185;
}
await value20;
try {
value21 = undefined;
value22 = false;
} catch (error) {
break exceptionLanding185;
}
if (value22) {
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
join_request = body.join_request;
} catch (error) {
break exceptionLanding185;
}
try {
value23 = value == join_request;
} catch (error) {
break exceptionLanding185;
}
if (!value23) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding3 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding3[14];
} catch (error) {
break exceptionLanding185;
}
try {
value24 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value24.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'USER_GUILD_JOIN_REQUEST_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
join_request = body.join_request;
} catch (error) {
break exceptionLanding185;
}
try {
object.request = join_request;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value24, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
binding = env2_11;
} catch (error) {
break exceptionLanding185;
}
try {
getGuild = binding.getGuild;
} catch (error) {
break exceptionLanding185;
}
try {
value25 = Reflect.apply(getGuild, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
value26 = value != value25;
} catch (error) {
break exceptionLanding185;
}
if (value26) {
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
show_verification_form = body.show_verification_form;
} catch (error) {
break exceptionLanding185;
}
if (show_verification_form) {
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding7 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding7[17];
} catch (error) {
break exceptionLanding185;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
transitionTo = value38.transitionTo;
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_21;
} catch (error) {
break exceptionLanding185;
}
try {
GUILD_MEMBER_VERIFICATION = binding.GUILD_MEMBER_VERIFICATION;
} catch (error) {
break exceptionLanding185;
}
try {
value39 = Reflect.apply(GUILD_MEMBER_VERIFICATION, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(transitionTo, value38, [value39]);
} catch (error) {
break exceptionLanding185;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
}
if (r13) {
env2_1(env2_3[15])();
Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(function(a0, a1) {
var Error = global.Error;
return a1(new Error());
});
return promise instanceof Object ? promise : value;
}
binding = env2_1;
value9 = binding(env2_3[14]);
wait = value9.wait;
Reflect.apply(wait, value9, [_fun51882]);
try {
binding = env2_13;
} catch (error) {
break exceptionLanding185;
}
try {
getGuildId = binding.getGuildId;
} catch (error) {
break exceptionLanding185;
}
try {
value10 = Reflect.apply(getGuildId, binding, []);
} catch (error) {
break exceptionLanding185;
}
try {
value11 = a0 !== value10;
} catch (error) {
break exceptionLanding185;
}
if (!value11) {
try {
binding = env2_11;
} catch (error) {
break exceptionLanding185;
}
try {
getGuild = binding.getGuild;
} catch (error) {
break exceptionLanding185;
}
try {
value12 = Reflect.apply(getGuild, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
value13 = value != value12;
} catch (error) {
break exceptionLanding185;
}
if (value13) {
try {
binding = env2_12;
} catch (error) {
break exceptionLanding185;
}
try {
getChannelId = binding.getChannelId;
} catch (error) {
break exceptionLanding185;
}
try {
value14 = Reflect.apply(getChannelId, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
r13 = value14;
break;
}
r13 = value;
break;
}
r13 = value;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding2 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding2[16];
} catch (error) {
break exceptionLanding185;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
HTTP = value15.HTTP;
} catch (error) {
break exceptionLanding185;
}
try {
put = HTTP.put;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_16;
} catch (error) {
break exceptionLanding185;
}
try {
GUILD_JOIN = binding.GUILD_JOIN;
} catch (error) {
break exceptionLanding185;
}
try {
value16 = Reflect.apply(GUILD_JOIN, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
object.url = value16;
} catch (error) {
break exceptionLanding185;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object2.lurker = r3;
} catch (error) {
break exceptionLanding185;
}
if (r3) {
try {
binding = env2_8;
} catch (error) {
break exceptionLanding185;
}
try {
getSessionId = binding.getSessionId;
} catch (error) {
break exceptionLanding185;
}
try {
value17 = Reflect.apply(getSessionId, binding, []);
} catch (error) {
break exceptionLanding185;
}
r24 = value17;
} else {
r24 = value;
}
try {
object2.session_id = r24;
} catch (error) {
break exceptionLanding185;
}
try {
object2.recommendation_load_id = loadId;
} catch (error) {
break exceptionLanding185;
}
if (r3) {
try {
value18 = value != lurkLocation;
} catch (error) {
break exceptionLanding185;
}
if (value18) {
r22 = lurkLocation;
break;
}
r22 = value;
break;
}
r22 = value;
try {
object2.location = r22;
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_17;
} catch (error) {
break exceptionLanding185;
}
try {
DIRECTORY_ENTRY = binding.DIRECTORY_ENTRY;
} catch (error) {
break exceptionLanding185;
}
value19 = source === DIRECTORY_ENTRY;
r22 = value19 || value;
try {
object2.from_directory = r22;
} catch (error) {
break exceptionLanding185;
}
try {
object.query = object2;
} catch (error) {
break exceptionLanding185;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object3.source = source;
} catch (error) {
break exceptionLanding185;
}
try {
object.context = object3;
} catch (error) {
break exceptionLanding185;
}
try {
object.oldFormErrors = true;
} catch (error) {
break exceptionLanding185;
}
try {
object4 = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.body = object4;
} catch (error) {
break exceptionLanding185;
}
try {
object.rejectWithError = false;
} catch (error) {
break exceptionLanding185;
}
try {
value20 = Reflect.apply(put, HTTP, [object]);
} catch (error) {
break exceptionLanding185;
}
await value20;
try {
value21 = undefined;
value22 = false;
} catch (error) {
break exceptionLanding185;
}
if (value22) {
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
join_request = body.join_request;
} catch (error) {
break exceptionLanding185;
}
try {
value23 = value == join_request;
} catch (error) {
break exceptionLanding185;
}
if (!value23) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding3 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding3[14];
} catch (error) {
break exceptionLanding185;
}
try {
value24 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value24.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'USER_GUILD_JOIN_REQUEST_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
join_request = body.join_request;
} catch (error) {
break exceptionLanding185;
}
try {
object.request = join_request;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value24, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
binding = env2_11;
} catch (error) {
break exceptionLanding185;
}
try {
getGuild = binding.getGuild;
} catch (error) {
break exceptionLanding185;
}
try {
value25 = Reflect.apply(getGuild, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
value26 = value != value25;
} catch (error) {
break exceptionLanding185;
}
if (value26) {
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
show_verification_form = body.show_verification_form;
} catch (error) {
break exceptionLanding185;
}
if (show_verification_form) {
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding7 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding7[17];
} catch (error) {
break exceptionLanding185;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
transitionTo = value38.transitionTo;
} catch (error) {
break exceptionLanding185;
}
try {
binding = env2_21;
} catch (error) {
break exceptionLanding185;
}
try {
GUILD_MEMBER_VERIFICATION = binding.GUILD_MEMBER_VERIFICATION;
} catch (error) {
break exceptionLanding185;
}
try {
value39 = Reflect.apply(GUILD_MEMBER_VERIFICATION, binding, [a0]);
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(transitionTo, value38, [value39]);
} catch (error) {
break exceptionLanding185;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
value27 = value == welcome_screen;
} catch (error) {
break exceptionLanding185;
}
if (!value27) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding185;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value28.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'WELCOME_SCREEN_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
welcome_screen = body.welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
object.welcomeScreen = welcome_screen;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value28, [object]);
} catch (error) {
break exceptionLanding185;
}
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
value29 = value == approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
if (!value29) {
try {
binding = env2_1;
} catch (error) {
break exceptionLanding185;
}
try {
binding5 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding5[14];
} catch (error) {
break exceptionLanding185;
}
try {
value30 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
dispatch = value30.dispatch;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.type = 'ONLINE_GUILD_MEMBER_COUNT_UPDATE';
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
id = body.id;
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = id;
} catch (error) {
break exceptionLanding185;
}
try {
body = value21.body;
} catch (error) {
break exceptionLanding185;
}
try {
approximate_presence_count = body.approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
object.count = approximate_presence_count;
} catch (error) {
break exceptionLanding185;
}
try {
Reflect.apply(dispatch, value30, [object]);
} catch (error) {
break exceptionLanding185;
}
}
if (r3) {
return value21;
}
if (r10) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding185;
}
try {
binding6 = env2_3;
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[19];
} catch (error) {
break exceptionLanding185;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding185;
}
try {
property = binding6[18];
} catch (error) {
break exceptionLanding185;
}
try {
paths = binding6.paths;
} catch (error) {
break exceptionLanding185;
}
try {
value32 = value31(property, paths);
} catch (error) {
break exceptionLanding185;
}
await value32;
try {
value33 = undefined;
value34 = false;
} catch (error) {
break exceptionLanding185;
}
if (value34) {
return value33;
}
try {
property = value33.default;
} catch (error) {
break exceptionLanding185;
}
try {
object = {};
} catch (error) {
break exceptionLanding185;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding185;
}
try {
object.returnChannelId = r13;
} catch (error) {
break exceptionLanding185;
}
try {
value35 = property(object);
} catch (error) {
break exceptionLanding185;
}
await value35;
try {
value36 = undefined;
value37 = false;
} catch (error) {
break exceptionLanding185;
}
return value37 ? value36 : value21;
}
return value21;
break exceptionSkip185;
}
body = error.body;
reducibleJoin187: while (true) {
if (value == body) {
code = value4;
break reducibleJoin187;
}
code = body.code;
break reducibleJoin187;
}
USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED = env2_15.USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED;
reducibleJoin189: while (true) {
if (code !== USER_GUILD_JOIN_LARGE_GUILD_UNDERAGE_DISALLOWED) {
break reducibleJoin189;
}
binding = env2_0;
value40 = binding(env2_3[20]);
openAgeGateModal = value40.openAgeGateModal;
JOIN_LARGE_GUILD_UNDERAGE = env2_23.JOIN_LARGE_GUILD_UNDERAGE;
Reflect.apply(openAgeGateModal, value40, [JOIN_LARGE_GUILD_UNDERAGE]);
break reducibleJoin189;
}
body = error.body;
reducibleJoin191: while (true) {
if (value == body) {
code = value4;
break reducibleJoin191;
}
code = body.code;
break reducibleJoin191;
}
TOO_MANY_USER_GUILDS = env2_15.TOO_MANY_USER_GUILDS;
reducibleJoin195: while (true) {
if (code !== TOO_MANY_USER_GUILDS) {
break reducibleJoin195;
}
binding = env2_0;
value41 = binding(env2_3[21]);
hasIncreasedGuildCap = value41.hasIncreasedGuildCap;
binding = env2_14;
getCurrentUser = binding.getCurrentUser;
hasIncreasedGuildCap2 = Reflect.apply(hasIncreasedGuildCap, value41, [Reflect.apply(getCurrentUser, binding,
[])]);
binding = env2_24;
if (hasIncreasedGuildCap2) {
binding(env2_20);
break reducibleJoin195;
}
binding(env2_19);
break reducibleJoin195;
}
body = error.body;
reducibleJoin197: while (true) {
if (value == body) {
code = value4;
break reducibleJoin197;
}
code = body.code;
break reducibleJoin197;
}
GUILD_AT_CAPACITY = env2_15.GUILD_AT_CAPACITY;
reducibleJoin199: while (true) {
if (code !== GUILD_AT_CAPACITY) {
break reducibleJoin199;
}
binding = env2_1;
binding8 = env2_3;
value42 = binding(binding8[12]);
show = value42.show;
object = {};
binding = env2_0;
intl = binding(binding8[13]).intl;
string = intl.string;
t = binding(binding8[13]).t;
ZZlox4 = t.ZZlox4;
object.title = Reflect.apply(string, intl, [ZZlox4]);
intl = binding(binding8[13]).intl;
string = intl.string;
t = binding(binding8[13]).t;
ZUEGFn = t.ZUEGFn;
object.body = Reflect.apply(string, intl, [ZUEGFn]);
Reflect.apply(show, value42, [object]);
break reducibleJoin199;
}
reducibleJoin203: while (true) {
if (r3) {
body = error.body;
reducibleJoin202: while (true) {
if (value == body) {
code = value4;
break reducibleJoin202;
}
code = body.code;
break reducibleJoin202;
}
UNKNOWN_GUILD = env2_15.UNKNOWN_GUILD;
value = code === UNKNOWN_GUILD;
r7 = value;
break reducibleJoin203;
}
r7 = r3;
break reducibleJoin203;
}
reducibleJoin205: while (true) {
if (r7) {
env2_25(a0);
break reducibleJoin205;
}
break reducibleJoin205;
}
throw error;
break exceptionSkip185;
}
function _fun51882() { // fn#51882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:972, offset: 0x012e7600, size: 84 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return env3_1(env3_3[14]).dispatch({type: 'GUILD_JOIN', guildId: env0_0, lurker: env0_3, source: source,
loadId: loadId});
}
}
}
function waitForGuild(a0) { // fn#51883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:2671, offset: 0x012e7654, size: 44 bytes, params: 2, frame: 11
let env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(function(a0) {
var env0_0 = a0;
return GuildStore.addConditionalChangeListener(_fun51885);
});
return promise instanceof Object ? promise : value;
function _fun51884(a0) { // fn#51884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:2716, offset: 0x012e7680, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return GuildStore.addConditionalChangeListener(_fun51885);
function _fun51885() { // fn#51885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:2751, offset: 0x012e76a2, size: 52 bytes, params: 1, frame: 12
var r0;
let value = environment.__proto__.__proto__;
const guildStoreBinding = GuildStore;
const getGuild = guildStoreBinding.getGuild;
value = environment.__proto__;
const value2 = Reflect.apply(getGuild, guildStoreBinding, [env1_0]) == null;
if (value2) {
r0 = value2;
} else {
env0_0(value);
value = false;
r0 = value;
}
return r0;
}
}
}
function transitionToGuildSync(a0, a1, a2, a3) { // fn#51887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:2934, offset: 0x012e76d6, size: 55 bytes, params: 5, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
return Module00005(_fun51889)();
function* _fun51889() { // fn#51889, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:2948, offset: 0x012e7716, size: 284 bytes, params: 1, frame: 22
var r5;
var object;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_27;
const value4 = undefined;
yield binding(require);
const value5 = undefined;
if (false) {
return value5;
}
const r9 = importAll ?? env2_0(env2_3[22]).getChannelIdForGuildTransition(value5.id);
if (importDefault != null && importDefault.hasOwnProperty('welcomeModalChannelId') && importDefault.welcomeModalChannelId == null) {
object = {};
copyDataProperties(object, importDefault, undefined);
object['welcomeModalChannelId'] = r9 ?? value4;
r5 = object;
} else {
r5 = importDefault;
}
const value11 = env2_1(env2_3[23]);
binding = env2_21;
const CHANNEL = binding.CHANNEL;
value11(Reflect.apply(CHANNEL, binding, [require, r9, dependencyMap]), r5);
const Promise = global.Promise;
yield new Promise(global.setImmediate);
return value4;
}
}
function selectGuild(a0) { // fn#51890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:3311, offset: 0x012e7832, size: 41 bytes, params: 2, frame: 12
(LurkerActionCreatorsModule).stopLurking(a0);
}
function createGuild(a0) { // fn#51891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:3351, offset: 0x012e785b, size: 54 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GUILD_CREATE', guild: a0});
}
function kickUser(a0, a1, a2, a3) { // fn#51896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:3908, offset: 0x012e7a13, size: 132 bytes, params: 5, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del;
const object = {};
object.url = Endpoints.GUILD_MEMBER(a0, a1);
object.query = {reason: a2, moderator_report_id: a3};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(del, HTTP, [object]).then(_fun51897);
function _fun51897() { // fn#51897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:4045, offset: 0x012e7a97, size: 68 bytes, params: 1, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_MEMBER_REMOVE_LOCAL',
guildId: env0_0, userId: require});
}
}
function setCommunicationDisabledUntil({guildId, userId, communicationDisabledUntilTimestamp, duration, reason, location, moderatorReportId}) { // fn#51898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:4156, offset: 0x012e7adb, size: 247 bytes, params: 2, frame: 24
const defaultImport = TrackedHTTPUtils;
const patch = defaultImport.patch;
const object = {};
object.url = Endpoints.GUILD_MEMBER(guildId, userId);
object.reason = reason;
object.body = {communication_disabled_until: communicationDisabledUntilTimestamp,
moderator_report_id: moderatorReportId};
object.oldFormErrors = true;
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const USER_COMMUNICATION_DISABLED_UPDATE = NetworkActionNames.USER_COMMUNICATION_DISABLED_UPDATE;
object.trackedActionData = {event: USER_COMMUNICATION_DISABLED_UPDATE, properties: {guild_id: guildId,
target_user_id: userId, duration: duration ?? null, reason: reason ?? null,
communication_disabled_until: communicationDisabledUntilTimestamp, location: location ?? null}};
object.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object]);
}
function startBulkBan(a0, a1, a2, a3) { // fn#51902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:5066, offset: 0x012e7d03, size: 62 bytes, params: 5, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
return Module00005(_fun51904)();
function* _fun51904() { // fn#51904, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:5109, offset: 0x012e7d4a, size: 446 bytes, params: 1, frame: 28
var r9;
var r7;
var banMultipleUsers;
var value5;
var value6;
var value7;
var consumeCompletedBeforeStarted;
var binding2;
var getId;
var value8;
var value9;
var binding3;
var property;
var value10;
var dispatch;
var body;
var value11;
var banned_users;
var value12;
var failed_users;
var value13;
var binding4;
var value14;
var object2;
var error;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_3[27]);
var getConfig = value3.getConfig;
var usePubSub = Reflect.apply(getConfig, value3, [{location: 'startBulkBan'}]).usePubSub;
reducibleJoin4: while (true) {
reduciblePort74: while (true) {
exceptionLanding73: while (true) {
try {
binding = env1_4;
} catch (error) {
break exceptionLanding73;
}
break reducibleJoin4;
}
binding = env2_1;
value = binding(env2_3[14]);
dispatch = value.dispatch;
Reflect.apply(dispatch, value, [{type: 'GUILD_BULK_BAN_FAILED', guildId: require}]);
break reduciblePort74;
}
return undefined;
}
try {
banMultipleUsers = binding.banMultipleUsers;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
value5 = Reflect.apply(banMultipleUsers, binding, [require, importDefault, importAll, dependencyMap]);
} catch (error) {
break exceptionLanding73;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding73;
}
if (value7) {
return value6;
}
if (usePubSub) {
try {
binding = env2_7;
} catch (error) {
break exceptionLanding73;
}
try {
consumeCompletedBeforeStarted = binding.consumeCompletedBeforeStarted;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
binding2 = env2_8;
} catch (error) {
break exceptionLanding73;
}
try {
getId = binding2.getId;
} catch (error) {
break exceptionLanding73;
}
try {
value8 = Reflect.apply(getId, binding2, []);
} catch (error) {
break exceptionLanding73;
}
try {
value9 = Reflect.apply(consumeCompletedBeforeStarted, binding, [require, value8]);
} catch (error) {
break exceptionLanding73;
}
reducibleJoin23: while (true) {
if (value9) {
return undefined;
}
break reducibleJoin23;
}
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding73;
}
try {
binding3 = env2_3;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[14];
} catch (error) {
break exceptionLanding73;
}
try {
value10 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
dispatch = value10.dispatch;
} catch (error) {
break exceptionLanding73;
}
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
try {
object.type = 'GUILD_BULK_BAN_STARTED';
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object.guildId = require;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(dispatch, value10, [object]);
} catch (error) {
break exceptionLanding73;
}
reducibleJoin74: while (true) {
if (usePubSub) {
break reducibleJoin74;
}
try {
body = value6.body;
} catch (error) {
break exceptionLanding73;
}
try {
value11 = body != null;
} catch (error) {
break exceptionLanding73;
}
if (value11) {
r9 = body;
} else {
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
r9 = object;
}
try {
banned_users = r9.banned_users;
} catch (error) {
break exceptionLanding73;
}
try {
value12 = banned_users === undefined;
} catch (error) {
break exceptionLanding73;
}
if (value12) {
try {
object = [];
} catch (error) {
break exceptionLanding73;
}
r7 = object;
} else {
r7 = banned_users;
}
try {
failed_users = r9.failed_users;
} catch (error) {
break exceptionLanding73;
}
try {
value13 = failed_users === undefined;
} catch (error) {
break exceptionLanding73;
}
if (value13) {
try {
object = [];
} catch (error) {
break exceptionLanding73;
}
r9 = object;
} else {
r9 = failed_users;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding73;
}
try {
binding4 = env2_3;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding4[14];
} catch (error) {
break exceptionLanding73;
}
try {
value14 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
dispatch = value14.dispatch;
} catch (error) {
break exceptionLanding73;
}
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
try {
object.type = 'GUILD_BULK_BAN_UPDATE';
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object.guildId = require;
} catch (error) {
break exceptionLanding73;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding73;
}
try {
object2.bannedUsers = r7;
} catch (error) {
break exceptionLanding73;
}
try {
object2.failedUsers = r9;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object2.targetUserIds = importDefault;
} catch (error) {
break exceptionLanding73;
}
try {
object.bulkBan = object2;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(dispatch, value14, [object]);
} catch (error) {
break exceptionLanding73;
}
break reducibleJoin74;
}
}
}
}
function createRole(a0, a1, a2, a3) { // fn#51905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:5655, offset: 0x012e7f08, size: 55 bytes, params: 5, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
return Module00005(_fun51907)();
function* _fun51907() { // fn#51907, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:5669, offset: 0x012e7f48, size: 500 bytes, params: 1, frame: 20
var r1;
var value3;
var binding;
var binding2;
var intl;
var binding3;
var property;
var value7;
var HTTP;
var post;
var object;
var GUILD_ROLES;
var value8;
var value9;
var value10;
var value11;
var body;
var binding4;
var value12;
var deserialize;
var permissions;
var value13;
var value14;
var dispatch;
var body2;
var id;
var value15;
var checkGuildTemplateDirty;
var error;
var prototype;
var value16;
if (false) {
return undefined;
}
let object3 = {};
value = environment.__proto__;
if (importDefault == null) {
value3 = environment.__proto__.__proto__;
binding = env2_0;
binding2 = env2_3;
intl = binding(binding2[13]).intl;
r1 = intl.string(binding(binding2[13]).t.QBMHvB);
} else if (importDefault !== '') {
r1 = importDefault;
} else {
value3 = environment.__proto__.__proto__;
binding = env2_0;
binding2 = env2_3;
intl = binding(binding2[13]).intl;
r1 = intl.string(binding(binding2[13]).t.QBMHvB);
}
object3.name = r1;
const value5 = 0;
object3.color = importAll ?? value5;
object3.colors = dependencyMap ?? ({'primary_color': null, 'secondary_color': null, 'tertiary_color': null,
primary_color: importAll ?? value5});
const NONE = env2_2(env2_3[28]).NONE;
object3.permissions = NONE;
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
binding3 = env2_3;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
property = binding3[16];
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value7 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
HTTP = value7.HTTP;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object = {};
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
binding = env2_16;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
GUILD_ROLES = binding.GUILD_ROLES;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value8 = Reflect.apply(GUILD_ROLES, binding, [require]);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object.url = value8;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object.oldFormErrors = true;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object.body = object3;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object.rejectWithError = false;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value9 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
if (value11) {
return value10;
}
try {
body = value10.body;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
binding = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
binding4 = env2_3;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
property = binding4[29];
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value12 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
deserialize = value12.deserialize;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
permissions = body.permissions;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value13 = Reflect.apply(deserialize, value12, [permissions]);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
body.permissions = value13;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
property = binding4[14];
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value14 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
dispatch = value14.dispatch;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object3 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object3.type = 'GUILD_SETTINGS_ROLE_SELECT';
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
body2 = value10.body;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
id = body2.id;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object3.roleId = id;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
object3.role = body;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
Reflect.apply(dispatch, value14, [object3]);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
property = binding4[30];
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
value15 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
checkGuildTemplateDirty = value15.checkGuildTemplateDirty;
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
try {
Reflect.apply(checkGuildTemplateDirty, value15, [require]);
} catch (error) {
binding = env2_1;
value = binding(env2_3[31]);
prototype = value.prototype;
value16 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value16;
throw value;
}
return body;
}
}
function updateRole(a0, a1, a2) { // fn#51908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6216, offset: 0x012e813c, size: 48 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return Module00005(_fun51910)();
function* _fun51910() { // fn#51910, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6228, offset: 0x012e8175, size: 254 bytes, params: 1, frame: 23
if (false) {
return undefined;
}
value = environment.__proto__;
const icon = importAll.icon;
const unicodeEmoji = importAll.unicodeEmoji;
let binding = env2_5;
const value4 = undefined;
const value5 = binding(importAll, env2_4);
const r10 = icon === null || icon != null && icon.startsWith('data:') ? icon : value4;
const HTTP = env2_0(env2_3[16]).HTTP;
const patch = HTTP.patch;
const object = {};
binding = env2_16;
object.url = binding.GUILD_ROLE(require, importDefault);
const object2 = {};
copyDataProperties(object2, value5, binding);
object2['icon'] = r10;
object2['unicode_emoji'] = unicodeEmoji;
object.body = object2;
object.oldFormErrors = true;
object.rejectWithError = false;
yield Reflect.apply(patch, HTTP, [object]);
const value6 = undefined;
if (true) {
env2_1(env2_3[30]).checkGuildTemplateDirty(require);
}
return value6;
}
}
function deleteRole(a0, a1) { // fn#51912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6638, offset: 0x012e82d5, size: 102 bytes, params: 3, frame: 18
const env0_0 = a0;
const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object.url = Endpoints.GUILD_ROLE(a0, a1);
Reflect.apply(del, HTTP, [object]).then(_fun51913);
function _fun51913() { // fn#51913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6739, offset: 0x012e833b, size: 45 bytes, params: 1, frame: 12
const value = environment.__proto__;
(GuildTemplateTooltipActionCreators).checkGuildTemplateDirty(env0_0);
}
}
function batchChannelUpdate(a0, a1) { // fn#51914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6803, offset: 0x012e8368, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun51916)();
function* _fun51916() { // fn#51916, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6813, offset: 0x012e839a, size: 154 bytes, params: 1, frame: 18
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_3[16]).HTTP;
const patch = HTTP.patch;
const object = {};
object.url = env2_16.GUILD_CHANNELS(require);
object.body = importDefault;
object.oldFormErrors = true;
object.rejectWithError = false;
yield Reflect.apply(patch, HTTP, [object]);
const value4 = undefined;
if (true) {
env2_1(env2_3[30]).checkGuildTemplateDirty(require);
}
return value4;
}
}
function batchRoleUpdate(a0, a1) { // fn#51917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:6993, offset: 0x012e8434, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun51919)();
function* _fun51919() { // fn#51919, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7003, offset: 0x012e8466, size: 154 bytes, params: 1, frame: 18
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_3[16]).HTTP;
const patch = HTTP.patch;
const object = {};
object.url = env2_16.GUILD_ROLES(require);
object.body = importDefault;
object.oldFormErrors = true;
object.rejectWithError = false;
yield Reflect.apply(patch, HTTP, [object]);
const value4 = undefined;
if (true) {
env2_1(env2_3[30]).checkGuildTemplateDirty(require);
}
return value4;
}
}
function requestMembers_51920(a0) { // fn#51920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7179, offset: 0x012e8500, size: 134 bytes, params: 2, frame: 17
const value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const r5 = value2 !== undefined ? value2 : '';
const r4 = value3 !== undefined ? value3 : 10;
const r3 = !(value4 !== undefined) || value4;
const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch;
const Array = global.Array;
return Reflect.apply(dispatch, defaultImport, [{type: 'GUILD_MEMBERS_REQUEST',
guildIds: Array.isArray(value) ? value : [value], query: r5, limit: r4, presences: r3}]);
}
function searchRecentMembers(a0, a1) { // fn#51921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7309, offset: 0x012e8586, size: 89 bytes, params: 3, frame: 14
const {query, continuationToken} = a1 ?? ({});
value = importDefault(694) /* metro dependency 694: Dispatcher */;
return value.dispatch({type: 'GUILD_SEARCH_RECENT_MEMBERS', guildId: a0, query: query,
continuationToken: continuationToken});
}
function requestMembersById(a0, a1) { // fn#51922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7506, offset: 0x012e85df, size: 145 bytes, params: 3, frame: 17
const value = a0;
const value2 = a1;
const value3 = a2;
const r3 = !(value3 !== undefined) || value3;
const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch;
const object = {type: 'GUILD_MEMBERS_REQUEST'};
let Array = global.Array;
object.guildIds = Array.isArray(value) ? value : [value];
Array = global.Array;
object.userIds = Array.isArray(value2) ? value2 : [value2];
object.presences = r3;
return Reflect.apply(dispatch, defaultImport, [object]);
}
function move(a0, a1, a2, a3) { // fn#51923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7643, offset: 0x012e8670, size: 89 bytes, params: 5, frame: 13
(Dispatcher).dispatch({type: 'GUILD_MOVE', fromIndex: a0,
toIndex: a1, fromFolderIndex: a2, toFolderIndex: a3});
}
function moveById(a0, a1) { // fn#51924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7753, offset: 0x012e86c9, size: 149 bytes, params: 3, frame: 17
let value = a2;
const value2 = a3;
const r6 = value !== undefined ? value : false;
const r5 = value2 !== undefined ? value2 : false;
if (a0 === a1) {
throw new global.Error('GuildActionCreators.moveById: `sourceId` and `targetId` cannot be the same value: ' + a0);
}
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GUILD_MOVE_BY_ID', sourceId: a0, targetId: a1, moveToBelow: r6, combine: r5});
}
function createGuildFolderLocal(a0, a1) { // fn#51925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:7988, offset: 0x012e875e, size: 96 bytes, params: 3, frame: 14
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_FOLDER_CREATED = AnalyticEvents.GUILD_FOLDER_CREATED;
Reflect.apply(track, defaultImport, [GUILD_FOLDER_CREATED]);
(Dispatcher).dispatch({type: 'GUILD_FOLDER_CREATE_LOCAL',
sourceIds: a0, name: a1});
}
function editGuildFolderLocal(a0, a1, a2) { // fn#51926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8129, offset: 0x012e87be, size: 72 bytes, params: 4, frame: 13
(Dispatcher).dispatch({type: 'GUILD_FOLDER_EDIT_LOCAL', targetId: a0,
sourceIds: a1, name: a2});
}
function deleteGuildFolderLocal(a0) { // fn#51927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8240, offset: 0x012e8806, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GUILD_FOLDER_DELETE_LOCAL',
targetId: a0});
}
function toggleGuildFolderExpand(a0) { // fn#51928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8332, offset: 0x012e883f, size: 138 bytes, params: 2, frame: 18
const isFolderExpanded2 = ExpandedGuildFolderStore.isFolderExpanded(a0);
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const GUILD_FOLDER_CLICKED = AnalyticEvents.GUILD_FOLDER_CLICKED;
Reflect.apply(track, defaultImport, [GUILD_FOLDER_CLICKED, {source: 'sidebar',
action: isFolderExpanded2 ? 'collapsed' : 'expanded'}]);
(Dispatcher).dispatch({type: 'TOGGLE_GUILD_FOLDER_EXPAND',
folderId: a0});
}
function setGuildFolderExpanded(a0, a1) { // fn#51929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8544, offset: 0x012e88c9, size: 63 bytes, params: 3, frame: 13
(Dispatcher).dispatch({type: 'SET_GUILD_FOLDER_EXPANDED',
folderId: a0, expanded: a1});
}
function collapseAllFolders() { // fn#51930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8649, offset: 0x012e8908, size: 47 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'GUILD_FOLDER_COLLAPSE'});
}
function nsfwAgree(a0) { // fn#51931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8721, offset: 0x012e8937, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GUILD_NSFW_AGREE', guildId: a0});
}
function nsfwReturnToSafety(a0) { // fn#51932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:8790, offset: 0x012e896f, size: 368 bytes, params: 2, frame: 19
var moduleValue;
var moduleValue2;
var defaultChannel;
var moduleValue3;
var moduleValue4;
var moduleValue5;
var moduleValue6;
const value2 = (GetPreviousSafeRouteForNsfwReturnNative)(a0);
if (value2 == null) {
if (a0 != null) {
defaultChannel = GuildChannelStore.getDefaultChannel(a0);
if (defaultChannel == null) {
moduleValue6 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue6.transitionTo(Routes.FRIENDS, {'navigationReplace': false, 'openChannel': true});
} else {
moduleValue3 = require(5072) /* metro dependency 5072: AgeGateUtils */;
if (moduleValue3.isChannelContentGated(defaultChannel)) {
moduleValue6 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue6.transitionTo(Routes.FRIENDS, {'navigationReplace': false, 'openChannel': true});
} else {
moduleValue4 = require(5087) /* metro dependency 5087: SpoilerChannelUtils */;
if (moduleValue4.isChannelSpoilerGated(defaultChannel)) {
moduleValue6 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue6.transitionTo(Routes.FRIENDS, {'navigationReplace': false, 'openChannel': true});
} else {
moduleValue5 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue5.transitionTo(Routes.CHANNEL(a0, defaultChannel.id));
}
}
}
} else {
moduleValue2 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue2.transitionTo(Routes.FRIENDS, {'navigationReplace': false, 'openChannel': true});
}
} else {
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
moduleValue.transitionTo(Routes.CHANNEL(value2.guildId, value2.channelId));
}
}
function spoilerAgree(a0) { // fn#51933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9210, offset: 0x012e8adf, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_SPOILER_AGREE', channelId: a0});
}
function clearSpoilerAgree(a0) { // fn#51934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9289, offset: 0x012e8b17, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_SPOILER_AGREE_CLEAR',
channelId: a0});
}
function escapeToDefaultChannel(a0) { // fn#51935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9379, offset: 0x012e8b4f, size: 130 bytes, params: 2, frame: 15
var moduleValue;
var moduleValue2;
const defaultChannel = GuildChannelStore.getDefaultChannel(a0);
if (defaultChannel != null) {
moduleValue2 = require(1230) /* metro dependency 1230: router_utils */;
moduleValue2.transitionTo(Routes.CHANNEL(a0, defaultChannel.id));
} else {
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
moduleValue.transitionTo(Routes.FRIENDS);
}
}
function fetchApplications(a0, a1) { // fn#51936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9535, offset: 0x012e8bd1, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun51938)();
function* _fun51938() { // fn#51938, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9545, offset: 0x012e8c03, size: 191 bytes, params: 1, frame: 17
if (true) {
var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
value = environment.__proto__.__proto__;
object.url = env2_16.GUILD_APPLICATIONS(require);
if (importDefault != null) {
object.query = {channel_id: importDefault};
}
var HTTP = env2_0(env2_3[16]).HTTP;
var get = HTTP.get;
yield Reflect.apply(get, HTTP, [object]);
var value4 = undefined;
if (false) {
return value4;
}
var body = value4.body;
value = env2_1(env2_3[14]);
value.dispatch({type: 'GUILD_APPLICATIONS_FETCH_SUCCESS', guildId: require, applications: body});
}
}
}
function fetchGuildBansBatch(a0) { // fn#51939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9814, offset: 0x012e8cc2, size: 64 bytes, params: 2, frame: 13
const value = a1;
const value2 = a2;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 1000;
const env0_2 = value2 !== undefined ? value2 : null;
return Module00005(_fun51941)();
function* _fun51941() { // fn#51941, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9835, offset: 0x012e8d0b, size: 162 bytes, params: 1, frame: 17
var environment;
if (true) {
var object = {};
value = environment.__proto__;
object.limit = importDefault;
if (importAll != null) {
object.after = importAll;
}
var HTTP = env2_0(env2_3[16]).HTTP;
var get = HTTP.get;
var object2 = {};
object2.url = env2_16.GUILD_BANS(require);
object2.oldFormErrors = true;
object2.query = object;
object2.rejectWithError = false;
value = Reflect.apply(get, HTTP, [object2]);
yield value.then(_fun51942);
}
function _fun51942({body}) { // fn#51942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:9981, offset: 0x012e8dad, size: 71 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_3[14]).dispatch({type: 'GUILD_SETTINGS_LOADED_BANS_BATCH', bans: body, guildId: require});
}
}
}
function searchGuildBans(a0, a1, a2) { // fn#51943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10092, offset: 0x012e8df4, size: 62 bytes, params: 4, frame: 12
const value = a3;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = value !== undefined ? value : 10;
return Module00005(_fun51945)();
function* _fun51945() { // fn#51945, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10109, offset: 0x012e8e3b, size: 232 bytes, params: 1, frame: 17
var environment;
if (true) {
var object = {};
value = environment.__proto__;
object.limit = dependencyMap;
if (importAll != null && importAll.length > 0) {
object.user_ids = importAll;
}
if (importDefault != null && importDefault.trim().length > 0) {
object.query = importDefault;
}
var HTTP = env2_0(env2_3[16]).HTTP;
var get = HTTP.get;
var object2 = {};
object2.url = env2_16.GUILD_BANS_SEARCH(require);
object2.oldFormErrors = true;
object2.query = object;
object2.rejectWithError = false;
value = Reflect.apply(get, HTTP, [object2]);
yield value.then(_fun51946);
}
function _fun51946({body}) { // fn#51946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10317, offset: 0x012e8f23, size: 80 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_3[14]).dispatch({type: 'GUILD_SETTINGS_LOADED_BANS_BATCH', bans: body, userIds: importAll,
guildId: require});
}
}
}
function fetchGuildBans(a0) { // fn#51947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10437, offset: 0x012e8f73, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun51949)();
function* _fun51949() { // fn#51949, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10443, offset: 0x012e8f9e, size: 121 bytes, params: 1, frame: 16
var environment;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var HTTP = binding(env2_3[16]).HTTP;
var get = HTTP.get;
binding = env2_16;
var GUILD_BANS = binding.GUILD_BANS;
value = environment.__proto__;
value = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: Reflect.apply(GUILD_BANS, binding, [require])}]);
yield value.then(_fun51950);
}
function _fun51950({body}) { // fn#51950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10544, offset: 0x012e9017, size: 60 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_3[14]).dispatch({type: 'GUILD_SETTINGS_LOADED_BANS', bans: body});
}
}
}
function fetchGuildRoleConnectionsEligibility(a0, a1) { // fn#51951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10660, offset: 0x012e9053, size: 101 bytes, params: 3, frame: 17
const env0_0 = a1;
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.GUILD_ROLE_CONNECTIONS_ELIGIBILITY(a0, a1);
return Reflect.apply(get, HTTP, [object]).then(_fun51952);
function _fun51952({body}) { // fn#51952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10776, offset: 0x012e90b8, size: 74 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GUILD_ROLE_CONNECTION_ELIGIBILITY_FETCH_SUCCESS',
roleId: require, roleConnectionEligibility: body});
return body;
}
}
function assignGuildRoleConnection(a0, a1) { // fn#51953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10933, offset: 0x012e9102, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun51955)();
function* _fun51955() { // fn#51955, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:10943, offset: 0x012e9134, size: 110 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var HTTP = binding(env2_3[16]).HTTP;
var post = HTTP.post;
binding = env2_16;
var GUILD_ROLE_CONNECTIONS_ASSIGN = binding.GUILD_ROLE_CONNECTIONS_ASSIGN;
value = environment.__proto__;
yield Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: Reflect.apply(GUILD_ROLE_CONNECTIONS_ASSIGN, binding, [require, importDefault])}]);
}
}
}
function unassignGuildRoleConnection(a0, a1) { // fn#51956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:11093, offset: 0x012e91a2, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun51958)();
function* _fun51958() { // fn#51958, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:11103, offset: 0x012e91d4, size: 110 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var HTTP = binding(env2_3[16]).HTTP;
var post = HTTP.post;
binding = env2_16;
var GUILD_ROLE_CONNECTIONS_UNASSIGN = binding.GUILD_ROLE_CONNECTIONS_UNASSIGN;
value = environment.__proto__;
yield Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: Reflect.apply(GUILD_ROLE_CONNECTIONS_UNASSIGN, binding, [require, importDefault])}]);
}
}
}
function getGuildRoleConnectionsConfigurations(a0) { // fn#51959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:11265, offset: 0x012e9242, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun51961)();
function* _fun51961() { // fn#51961, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6771:11271, offset: 0x012e926d, size: 109 bytes, params: 1, frame: 15
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_0;
const HTTP = binding(env2_3[16]).HTTP;
const get = HTTP.get;
binding = env2_16;
const GUILD_ROLE_CONNECTIONS_CONFIGURATIONS = binding.GUILD_ROLE_CONNECTIONS_CONFIGURATIONS;
value = environment.__proto__;
yield Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: Reflect.apply(GUILD_ROLE_CONNECTIONS_CONFIGURATIONS, binding, [require])}]);
value = undefined;
if (false) {
return value;
}
return value.body;
}
}
}
global.__d(_fun51875, 6593, [29, 5, 6594, 1226, 4897, 1935, 1867, 1934, 3969, 1878, 661, 1229, 4647, 1244, 694,
6595, 507, 1230, 6598, 1962, 5075, 6823, 6828, 6837, 6911, 5046, 480, 6930, 3789, 483, 6931, 3825, 683, 6935,
5072, 5087,
2]) /* metro module 6593, dependencies: [29, 5, 6594, 1226, 4897, 1935, 1867, 1934, 3969, 1878, 661, 1229, 4647, 1244, 694, 6595, 507, 1230, 6598, 1962, 5075, 6823, 6828, 6837, 6911, 5046, 480, 6930, 3789, 483, 6931, 3825, 683, 6935, 5072, 5087, 2] */;