/* Metro module 7871; source: modules/application_commands/ApplicationCommandBuiltIns.tsx; dependencies: [5, 1379, 3784, 1878, 5066, 661, 7872, 1947, 4503, 5068, 1244, 7873, 1909, 3829, 7874, 7875, 6860, 7876, 677, 7878, 7067, 7076, 6593, 3995, 672, 8037, 3738, 4603, 44, 6838, 8038, 2] */ function _fun62991(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:6, offset: 0x01b6e029, size: 3772 bytes, params: 8, frame: 36 var object38; let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = importDefault(5) /* metro dependency 5 */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const BuiltInSectionId = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_8 = constantsModule.Permissions; const env0_9 = constantsModule.MARKDOWN_SPOILER_WRAPPER; const env0_10 = constantsModule.ME; const DISPLAY_NAME_MAX_LENGTH = constantsModule.DISPLAY_NAME_MAX_LENGTH; const MAX_CHANNEL_NAME_LENGTH = constantsModule.MAX_CHANNEL_NAME_LENGTH; const {ALLOWED_DICE_SIDES, MAX_DICE_COUNT} = require(7872) /* metro dependency 7872: DiceRollConstants */; const env0_12 = (require(1947) /* metro dependency 1947: GuildDisableCommunicationConstants */).getDisableCommunicationDurationOptions; const env0_13 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation; const getOptionValue = function(a0, a1) { var env0_0 = a1; return a0.find(_fun62993)?.value; }; object38 = {}; let BUILT_IN = BuiltInSectionId.BUILT_IN; const object39 = {}; const BUILT_IN2 = BuiltInSectionId.BUILT_IN; object39.id = BUILT_IN2; const ApplicationCommandSectionType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandSectionType; const BUILT_IN3 = ApplicationCommandSectionType.BUILT_IN; object39.type = BUILT_IN3; Object.defineProperty(object39, 'name', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.fI5MTa); }, set: undefined, enumerable: true, configurable: true}); object38[BUILT_IN] = object39; const FRECENCY = BuiltInSectionId.FRECENCY; const object40 = {}; const FRECENCY2 = BuiltInSectionId.FRECENCY; object40.id = FRECENCY2; BUILT_IN = ApplicationCommandSectionType.BUILT_IN; object40.type = BUILT_IN; Object.defineProperty(object40, 'name', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['+cGVV6']); }, set: undefined, enumerable: true, configurable: true}); object38[FRECENCY] = object40; const property = (require(7873) /* metro dependency 7873: ApplicationCommandBuiltIns */).default; const items2 = []; const value4 = arraySpread(items2, property, 0, undefined); const object41 = {'id': '-1', 'untranslatedName': 'shrug', 'displayName': 'shrug'}; const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType; let CHAT = ApplicationCommandType.CHAT; object41.type = CHAT; const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType; let BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object41.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object41.applicationId = BUILT_IN; Object.defineProperty(object41, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.j5xUSW); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object41, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.j5xUSW); }, set: undefined, enumerable: true, configurable: true}); const object42 = {'name': 'message', 'displayName': 'message'}; const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType; let STRING = ApplicationCommandOptionType.STRING; object42.type = STRING; Object.defineProperty(object42, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.JewOrS); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object42, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.JewOrS); }, set: undefined, enumerable: true, configurable: true}); object41.options = [object42]; object41.execute = execute; items2[value4] = object41; const value5 = value4 + 1; const object43 = {'id': '-2', 'untranslatedName': 'tableflip', 'displayName': 'tableflip'}; CHAT = ApplicationCommandType.CHAT; object43.type = CHAT; BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object43.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object43.applicationId = BUILT_IN; Object.defineProperty(object43, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.nrQRce); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object43, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.nrQRce); }, set: undefined, enumerable: true, configurable: true}); const object44 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object44.type = STRING; Object.defineProperty(object44, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.EI80tw); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object44, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.EI80tw); }, set: undefined, enumerable: true, configurable: true}); object43.options = [object44]; object43.execute = execute_63005; items2[value5] = object43; const value6 = value5 + 1; const object45 = {'id': '-3', 'untranslatedName': 'unflip', 'displayName': 'unflip'}; CHAT = ApplicationCommandType.CHAT; object45.type = CHAT; BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object45.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object45.applicationId = BUILT_IN; Object.defineProperty(object45, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pnnn8e); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object45, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pnnn8e); }, set: undefined, enumerable: true, configurable: true}); const object46 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object46.type = STRING; Object.defineProperty(object46, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.ETs6go); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object46, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.ETs6go); }, set: undefined, enumerable: true, configurable: true}); object45.options = [object46]; object45.execute = execute_63010; items2[value6] = object45; const value7 = value6 + 1; const object47 = {'id': '-4', 'untranslatedName': 'tts', 'displayName': 'tts'}; CHAT = ApplicationCommandType.CHAT; object47.type = CHAT; BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object47.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object47.applicationId = BUILT_IN; Object.defineProperty(object47, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.jZcIid); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object47, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.jZcIid); }, set: undefined, enumerable: true, configurable: true}); const object48 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object48.type = STRING; Object.defineProperty(object48, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['k+sw9g']); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object48, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['k+sw9g']); }, set: undefined, enumerable: true, configurable: true}); object48.required = true; object47.options = [object48]; object47.predicate = predicate; object47.execute = execute_63016; items2[value7] = object47; const value8 = value7 + 1; const object49 = {'id': '-5', 'untranslatedName': 'me', 'displayName': 'me'}; CHAT = ApplicationCommandType.CHAT; object49.type = CHAT; BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object49.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object49.applicationId = BUILT_IN; Object.defineProperty(object49, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UGO8fU); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object49, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UGO8fU); }, set: undefined, enumerable: true, configurable: true}); const object50 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object50.type = STRING; Object.defineProperty(object50, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.RWTgNd); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object50, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.RWTgNd); }, set: undefined, enumerable: true, configurable: true}); object50.required = true; object49.options = [object50]; object49.execute = execute_63021; items2[value8] = object49; const value9 = value8 + 1; const object51 = {'id': '-6', 'untranslatedName': 'spoiler', 'displayName': 'spoiler'}; CHAT = ApplicationCommandType.CHAT; object51.type = CHAT; BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT; object51.inputType = BUILT_IN_TEXT; BUILT_IN = BuiltInSectionId.BUILT_IN; object51.applicationId = BUILT_IN; Object.defineProperty(object51, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.v0eDdV); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object51, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.v0eDdV); }, set: undefined, enumerable: true, configurable: true}); const object52 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object52.type = STRING; Object.defineProperty(object52, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.D13pbc); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object52, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.D13pbc); }, set: undefined, enumerable: true, configurable: true}); object52.required = true; object51.options = [object52]; object51.execute = execute_63026; items2[value9] = object51; const value10 = value9 + 1; const object53 = {'id': '-7', 'untranslatedName': 'nick', 'displayName': 'nick'}; CHAT = ApplicationCommandType.CHAT; object53.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object53.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object53.applicationId = BUILT_IN; Object.defineProperty(object53, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['jiHfS/']); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object53, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['jiHfS/']); }, set: undefined, enumerable: true, configurable: true}); const object54 = {'name': 'new_nick', 'displayName': 'new_nick'}; STRING = ApplicationCommandOptionType.STRING; object54.type = STRING; Object.defineProperty(object54, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.WTSzVu); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object54, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.WTSzVu); }, set: undefined, enumerable: true, configurable: true}); object54.maxLength = DISPLAY_NAME_MAX_LENGTH; object53.options = [object54]; object53.predicate = function({channel}) { return channel != null && !channel.isPrivate() && (PermissionStore.can(Permissions.CHANGE_NICKNAME, channel) || PermissionStore.can(Permissions.MANAGE_NICKNAMES, channel)); }; object53.execute = execute_63032; items2[value10] = object53; const value11 = value10 + 1; const object55 = {'id': '-10', 'untranslatedName': 'thread', 'displayName': 'thread'}; CHAT = ApplicationCommandType.CHAT; object55.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object55.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object55.applicationId = BUILT_IN; Object.defineProperty(object55, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.t6ZAS0); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object55, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.t6ZAS0); }, set: undefined, enumerable: true, configurable: true}); const object56 = {'name': 'name', 'displayName': 'name'}; STRING = ApplicationCommandOptionType.STRING; object56.type = STRING; Object.defineProperty(object56, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.TffOfY); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object56, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.TffOfY); }, set: undefined, enumerable: true, configurable: true}); object56.required = true; object56.maxLength = MAX_CHANNEL_NAME_LENGTH; const items9 = [object56]; const object57 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object57.type = STRING; Object.defineProperty(object57, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QXfSfU); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object57, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QXfSfU); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object57, 'maxLength', {get: _fun63039, set: undefined, enumerable: true, configurable: true}); object57.required = true; items9[1] = object57; object55.options = items9; object55.predicate = predicate_63040; const env0_3 = value(_fun63042); object55.execute = execute_63043; items2[value11] = object55; value = value11 + 1; const object58 = {'id': '-11', 'untranslatedName': 'kick', 'displayName': 'kick'}; CHAT = ApplicationCommandType.CHAT; object58.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object58.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object58.applicationId = BUILT_IN; Object.defineProperty(object58, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['03N0UL']); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object58, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['03N0UL']); }, set: undefined, enumerable: true, configurable: true}); const object59 = {'name': 'user', 'displayName': 'user'}; let USER = ApplicationCommandOptionType.USER; object59.type = USER; Object.defineProperty(object59, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.gF8IpD); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object59, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.gF8IpD); }, set: undefined, enumerable: true, configurable: true}); object59.required = true; const items10 = [object59]; const object60 = {'name': 'reason', 'displayName': 'reason'}; STRING = ApplicationCommandOptionType.STRING; object60.type = STRING; Object.defineProperty(object60, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QWldgj); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object60, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QWldgj); }, set: undefined, enumerable: true, configurable: true}); object60.required = false; items10[1] = object60; object58.options = items10; object58.predicate = function({guild}) { return PermissionStore.can(Permissions.KICK_MEMBERS, guild); }; object58.execute = execute_63051; items2[value] = object58; value += 1; const object61 = {'id': '-12', 'untranslatedName': 'ban', 'displayName': 'ban'}; CHAT = ApplicationCommandType.CHAT; object61.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object61.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object61.applicationId = BUILT_IN; Object.defineProperty(object61, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.HWuskv); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object61, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.HWuskv); }, set: undefined, enumerable: true, configurable: true}); const object62 = {'name': 'user', 'displayName': 'user'}; USER = ApplicationCommandOptionType.USER; object62.type = USER; Object.defineProperty(object62, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.z3XPjr); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object62, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.z3XPjr); }, set: undefined, enumerable: true, configurable: true}); object62.required = true; const items11 = [object62]; const object63 = {'name': 'delete_messages', 'displayName': 'delete_messages'}; let INTEGER = ApplicationCommandOptionType.INTEGER; object63.type = INTEGER; Object.defineProperty(object63, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.smrvA6); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object63, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.smrvA6); }, set: undefined, enumerable: true, configurable: true}); object63.required = true; Object.defineProperty(object63, 'choices', {get: _fun63063, set: undefined, enumerable: true, configurable: true}); items11[1] = object63; const object64 = {'name': 'reason', 'displayName': 'reason'}; STRING = ApplicationCommandOptionType.STRING; object64.type = STRING; Object.defineProperty(object64, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.dG4noU); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object64, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.dG4noU); }, set: undefined, enumerable: true, configurable: true}); object64.required = false; items11[2] = object64; object61.options = items11; object61.predicate = function({guild}) { return PermissionStore.can(Permissions.BAN_MEMBERS, guild); }; object61.execute = execute_63067; items2[value] = object61; value += 1; const object65 = {'id': '-13', 'untranslatedName': 'timeout', 'displayName': 'timeout'}; CHAT = ApplicationCommandType.CHAT; object65.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object65.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object65.applicationId = BUILT_IN; Object.defineProperty(object65, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.KkPcep); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object65, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.KkPcep); }, set: undefined, enumerable: true, configurable: true}); const object66 = {'name': 'user', 'displayName': 'user'}; USER = ApplicationCommandOptionType.USER; object66.type = USER; Object.defineProperty(object66, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UU3VRm); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object66, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UU3VRm); }, set: undefined, enumerable: true, configurable: true}); object66.required = true; const items12 = [object66]; const object67 = {'name': 'duration', 'displayName': 'duration'}; INTEGER = ApplicationCommandOptionType.INTEGER; object67.type = INTEGER; Object.defineProperty(object67, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.SNqN1e); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object67, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.SNqN1e); }, set: undefined, enumerable: true, configurable: true}); object67.required = true; Object.defineProperty(object67, 'choices', {get: _fun63079, set: undefined, enumerable: true, configurable: true}); items12[1] = object67; const object68 = {'name': 'reason', 'displayName': 'reason'}; STRING = ApplicationCommandOptionType.STRING; object68.type = STRING; Object.defineProperty(object68, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.akHScA); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object68, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.akHScA); }, set: undefined, enumerable: true, configurable: true}); object68.required = false; items12[2] = object68; object65.options = items12; object65.predicate = function({guild}) { return PermissionStore.can(Permissions.MODERATE_MEMBERS, guild); }; object65.execute = execute_63084; items2[value] = object65; value += 1; const object69 = {'id': '-14', 'untranslatedName': 'msg', 'displayName': 'msg'}; CHAT = ApplicationCommandType.CHAT; object69.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object69.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object69.applicationId = BUILT_IN; Object.defineProperty(object69, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.Dg8XZw); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object69, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.Dg8XZw); }, set: undefined, enumerable: true, configurable: true}); const object70 = {'name': 'user', 'displayName': 'user'}; USER = ApplicationCommandOptionType.USER; object70.type = USER; Object.defineProperty(object70, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['KmVq/D']); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object70, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['KmVq/D']); }, set: undefined, enumerable: true, configurable: true}); object70.required = true; const items13 = [object70]; const object71 = {'name': 'message', 'displayName': 'message'}; STRING = ApplicationCommandOptionType.STRING; object71.type = STRING; Object.defineProperty(object71, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.oGUuOJ); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object71, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.oGUuOJ); }, set: undefined, enumerable: true, configurable: true}); object71.required = true; Object.defineProperty(object71, 'maxLength', {get: _fun63096, set: undefined, enumerable: true, configurable: true}); items13[1] = object71; object69.options = items13; object69.execute = execute_63097; items2[value] = object69; const object72 = {'id': '-18', 'untranslatedName': 'roll-dice', 'displayName': 'roll-dice'}; CHAT = ApplicationCommandType.CHAT; object72.type = CHAT; BUILT_IN = ApplicationCommandInputType.BUILT_IN; object72.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object72.applicationId = BUILT_IN; Object.defineProperty(object72, 'untranslatedDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.reVgOh); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object72, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.reVgOh); }, set: undefined, enumerable: true, configurable: true}); const object73 = {'name': 'count', 'displayName': 'count'}; INTEGER = ApplicationCommandOptionType.INTEGER; object73.type = INTEGER; Object.defineProperty(object73, 'description', {get: function() { return require(dependencyMap[10]).intl.formatToPlainString(require(dependencyMap[10]).t.iSbJTZ, {max: MAX_DICE_COUNT}); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object73, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.formatToPlainString(require(dependencyMap[10]).t.iSbJTZ, {max: MAX_DICE_COUNT}); }, set: undefined, enumerable: true, configurable: true}); object73.minValue = 1; object73.maxValue = MAX_DICE_COUNT; const items14 = [object73]; const object74 = {'name': 'size', 'displayName': 'size'}; INTEGER = ApplicationCommandOptionType.INTEGER; object74.type = INTEGER; Object.defineProperty(object74, 'description', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pV214H); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object74, 'displayDescription', {get: function() { return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pV214H); }, set: undefined, enumerable: true, configurable: true}); object74.choices = ALLOWED_DICE_SIDES.map(function(a0) { return {name: 'D' + a0, displayName: 'D' + a0, value: a0}; }); items14[1] = object74; object72.options = items14; object72.execute = execute_63111; items2[value + 1] = object72; value = items2.filter(function(a0) { return ['gif', 'tenor', 'tts', 'me', 'tableflip', 'unflip', 'shrug', 'spoiler', 'nick'].includes(a0.untranslatedName); }); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/ApplicationCommandBuiltIns.tsx'); exports.PLATFORM_COMMANDS = (require(7873) /* metro dependency 7873: ApplicationCommandBuiltIns */).default; exports.BUILT_IN_SECTIONS = object38; exports.BUILT_IN_COMMANDS = items2; exports.BUILT_IN_COMMANDS_ORIGINAL = value; exports.getBuiltInCommands = getBuiltInCommands; } function getOptionValue(a0, a1) { // fn#62992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:429, offset: 0x01b6eee5, size: 46 bytes, params: 3, frame: 11 const env0_0 = a1; return a0.find(function({name}) { return name === require; })?.value; } function execute(a0) { // fn#63000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:1388, offset: 0x01b6f00f, size: 84 bytes, params: 2, frame: 14 const object2 = {}; let value = getOptionValue(a0, 'message'); const value2 = ''; value = value2 + (value ?? value2) + ' ¯\\_(ツ)_/¯'; object2.content = value.trim(); return object2; } function execute_63005(a0) { // fn#63005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:2072, offset: 0x01b6f0df, size: 84 bytes, params: 2, frame: 14 const object2 = {}; let value = getOptionValue(a0, 'message'); const value2 = ''; value = value2 + (value ?? value2) + ' (╯°□°)╯︵ ┻━┻'; object2.content = value.trim(); return object2; } function execute_63010(a0) { // fn#63010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:2764, offset: 0x01b6f1af, size: 84 bytes, params: 2, frame: 14 const object2 = {}; let value = getOptionValue(a0, 'message'); const value2 = ''; value = value2 + (value ?? value2) + ' ┬─┬ノ( º _ ºノ)'; object2.content = value.trim(); return object2; } function predicate({channel}) { // fn#63015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:3467, offset: 0x01b6f27f, size: 108 bytes, params: 2, frame: 14 return channel != null && !channel.isPrivate() && (require(3829) /* metro dependency 3829: UserSettings */).EnableTTSCommand.getSetting() && PermissionStore.can(Permissions.SEND_TTS_MESSAGES, channel); } function execute_63016(a0) { // fn#63016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:3584, offset: 0x01b6f2eb, size: 53 bytes, params: 2, frame: 14 return {content: getOptionValue(a0, 'message') ?? '', tts: true}; } function execute_63021(a0) { // fn#63021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:4246, offset: 0x01b6f39c, size: 69 bytes, params: 2, frame: 14 return {content: '_' + (getOptionValue(a0, 'message') ?? '') + '_'}; } function execute_63026(a0) { // fn#63026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:4918, offset: 0x01b6f45d, size: 65 bytes, params: 2, frame: 14 const r2 = getOptionValue(a0, 'message') ?? ''; const object2 = {}; object2.content = MARKDOWN_SPOILER_WRAPPER(r2).trim(); return object2; } function execute_63032(a0, {guild, channel}) { // fn#63032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:5702, offset: 0x01b6f57a, size: 133 bytes, params: 3, frame: 20 var r5; var optionValue; var value3; var defaultImport; var changeNickname; var id; var id2; if (guild != null) { if (channel != null) { optionValue = getOptionValue(a0, 'new_nick'); value3 = ''; r5 = optionValue ?? value3; defaultImport = importDefault(7874) /* metro dependency 7874: ChangeNicknameActionCreators */; changeNickname = defaultImport.changeNickname; id = guild.id; id2 = channel.id; r5 = !r5 ? value3 : r5; Reflect.apply(changeNickname, defaultImport, [id, id2, ME, r5]); } } } function _fun63039() { // fn#63039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:6663, offset: 0x01b6f6b9, size: 37 bytes, params: 1, frame: 11 return (require(7875) /* metro dependency 7875: useMessageMaxLength */).getMaxMessageLength(); } function predicate_63040({channel}) { // fn#63040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:6742, offset: 0x01b6f6de, size: 55 bytes, params: 2, frame: 13 var r0; let value = channel != null; if (value) { value = require(6860) /* metro dependency 6860: ThreadHooks */; value = value.computeCanStartPublicThread(channel); r0 = value; } else { r0 = value; } return r0; } async function _fun63042(a0, {channel}) { // fn#63042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:6820, offset: 0x01b6f727, size: 297 bytes, params: 3, frame: 26 if (true) { await undefined; if (false) { return undefined; } value = environment.__proto__; var value4 = env1_14(a0, 'name'); var value5 = ''; var r9 = value4 ?? value5; var r10 = env1_14(a0, 'message') ?? value5; var binding = env1_0; var binding2 = env1_2; var value7 = binding(binding2[17]); var createThread = value7.createThread; var ChannelTypes = binding(binding2[18]).ChannelTypes; var PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD; await Reflect.apply(createThread, value7, [channel, r9, PUBLIC_THREAD, binding(binding2[19]).getAutoArchiveDuration(channel, null), 'Slash Command']); if (false) { return undefined; } binding = env1_1; var binding3 = env1_2; var value12 = binding(binding3[20]); var sendMessage = value12.sendMessage; var id = undefined.id; var value14 = binding(binding3[21]).parse(undefined, r10); var THREAD_CREATION = env1_13.THREAD_CREATION; Reflect.apply(sendMessage, value12, [id, value14, true, {location: THREAD_CREATION}]); } } function execute_63051(a0, {guild, channel}) { // fn#63051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:8061, offset: 0x01b6f931, size: 240 bytes, params: 3, frame: 20 var defaultImport; var sendBotMessage; var id; var intl; const env0_0 = a0; if (guild != null) { if (channel != null) { if (PermissionStore.canManageUser(Permissions.KICK_MEMBERS, getOptionValue(a0, 'user') ?? '', guild)) { _fun63052()().catch(function() { importDefault(dependencyMap[20]).sendBotMessage(channel.id, require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.l0gNlp)); }); } else { defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; sendBotMessage = defaultImport.sendBotMessage; id = channel.id; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; Reflect.apply(sendBotMessage, defaultImport, [id, intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6RIwPI'])]); } } } } function _fun63063() { // fn#63063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:9523, offset: 0x01b6fc98, size: 927 bytes, params: 1, frame: 19 let object2 = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; object2.name = Reflect.apply(string, intl, [t['4obaMS']]); object2.displayName = intl.string(t['4obaMS']); object2.value = 0; const items2 = [object2]; object2 = {}; string = intl.string; let RKpitY = t.RKpitY; object2.name = Reflect.apply(string, intl, [RKpitY]); string = intl.string; RKpitY = t.RKpitY; object2.displayName = Reflect.apply(string, intl, [RKpitY]); let Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; let HOUR = Seconds.HOUR; object2.value = HOUR; items2[1] = object2; object2 = {}; object2.name = intl.string(t['8WfJZ8']); object2.displayName = intl.string(t['8WfJZ8']); Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; HOUR = Seconds.HOUR; object2.value = 6 * HOUR; items2[2] = object2; object2 = {}; object2.name = intl.string(t.p1up7u); object2.displayName = intl.string(t.p1up7u); Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; HOUR = Seconds.HOUR; object2.value = 12 * HOUR; items2[3] = object2; object2 = {}; string = intl.string; let XuVkkD = t.XuVkkD; object2.name = Reflect.apply(string, intl, [XuVkkD]); string = intl.string; XuVkkD = t.XuVkkD; object2.displayName = Reflect.apply(string, intl, [XuVkkD]); Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; let DAY = Seconds.DAY; object2.value = DAY; items2[4] = object2; object2 = {}; object2.name = intl.string(t['gMcDS+']); object2.displayName = intl.string(t['gMcDS+']); Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; DAY = Seconds.DAY; object2.value = 3 * DAY; items2[5] = object2; object2 = {}; string = intl.string; let FA7IUk = t.FA7IUk; object2.name = Reflect.apply(string, intl, [FA7IUk]); string = intl.string; FA7IUk = t.FA7IUk; object2.displayName = Reflect.apply(string, intl, [FA7IUk]); Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds; DAY = Seconds.DAY; object2.value = 7 * DAY; items2[6] = object2; return items2; } function execute_63067(a0, {guild, channel}) { // fn#63067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:10733, offset: 0x01b7009c, size: 240 bytes, params: 3, frame: 20 var defaultImport; var sendBotMessage; var id; var intl; const env0_0 = a0; if (guild != null) { if (channel != null) { if (PermissionStore.canManageUser(Permissions.BAN_MEMBERS, getOptionValue(a0, 'user') ?? '', guild)) { _fun63068()().catch(function() { importDefault(dependencyMap[20]).sendBotMessage(channel.id, require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.w2J6Qs)); }); } else { defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; sendBotMessage = defaultImport.sendBotMessage; id = channel.id; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; Reflect.apply(sendBotMessage, defaultImport, [id, intl.string((require(1244) /* metro dependency 1244: indexNative */).t.R27LJl)]); } } } } function _fun63079() { // fn#63079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:12254, offset: 0x01b7043f, size: 32 bytes, params: 1, frame: 11 return getDisableCommunicationDurationOptions().map(function(a0) { var r3; var object = {}; copyDataProperties(object, a0, r3); object['name'] = a0.label; object['displayName'] = a0.label; return object; }); } function execute_63084(a0, {guild, channel}) { // fn#63084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:12631, offset: 0x01b704f1, size: 236 bytes, params: 3, frame: 19 var optionValue; var moduleValue; var canToggleCommunicationDisableOnUser; var id; var defaultImport; var sendBotMessage; var intl; const env0_0 = a0; if (guild != null) { if (channel != null) { optionValue = getOptionValue(a0, 'user'); moduleValue = require(8037) /* metro dependency 8037: useCanToggleCommunicationDisableOnUser */; canToggleCommunicationDisableOnUser = moduleValue.canToggleCommunicationDisableOnUser; id = guild.id; if (Reflect.apply(canToggleCommunicationDisableOnUser, moduleValue, [id, optionValue])) { _fun63085()().catch(function() { importDefault(dependencyMap[20]).sendBotMessage(channel.id, require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['+mWyVq'])); }); } else { defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; sendBotMessage = defaultImport.sendBotMessage; id = channel.id; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; Reflect.apply(sendBotMessage, defaultImport, [id, intl.string((require(1244) /* metro dependency 1244: indexNative */).t.F5pqSf)]); } } } } function execute_63097(a0, {channel}) { // fn#63097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14331, offset: 0x01b708b6, size: 113 bytes, params: 3, frame: 15 var r2; var value; var getOptionValueBinding; var env0_1; if (channel != null) { getOptionValueBinding = getOptionValue; env0_1 = getOptionValueBinding(a0, 'user'); value = getOptionValueBinding(a0, 'message'); r2 = value ?? ''; value = _fun63098()(); value.catch(function() { importDefault(dependencyMap[20]).sendBotMessage(channel.id, require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['3XaE95'])); }); } } function execute_63111(a0, {channel}) { // fn#63111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:15790, offset: 0x01b70ba6, size: 145 bytes, params: 3, frame: 20 var Number; var value; var value4; var value7; if (channel != null) { Number = global.Number; value4 = Number(getOptionValue(a0, 'count') ?? 1); Number = global.Number; value7 = Number(getOptionValue(a0, 'size') ?? 6); value = require(6838) /* metro dependency 6838: DiceRollActionCreators */; value.startDiceRoll(channel.id, value4, value7); } } function getBuiltInCommands(a0, a1, a2) { // fn#63113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:16314, offset: 0x01b70c56, size: 104 bytes, params: 4, frame: 14 const env0_0 = a0; const env0_1 = a2; const r2 = a1 ? env0_15 : env0_16; const value = importDefault(8038) /* metro dependency 8038: DiceRollExperiment */; const getConfig = value.getConfig; const env0_2 = Reflect.apply(getConfig, value, [{location: 'getBuiltInCommands'}]).enabled; return r2.filter(_fun63114); } function _fun63052() { // fn#63052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:8206, offset: 0x01b6fa21, size: 32 bytes, params: 1, frame: 12 const env0_0 = env1_4(_fun63054); return _fun63055; } function _fun63068() { // fn#63068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:10877, offset: 0x01b7018c, size: 32 bytes, params: 1, frame: 12 const env0_0 = env1_4(_fun63070); return _fun63071; } function _fun63085() { // fn#63085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:12772, offset: 0x01b705dd, size: 32 bytes, params: 1, frame: 12 const env0_0 = env1_4(_fun63087); return _fun63088; } function _fun63098() { // fn#63098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14445, offset: 0x01b70927, size: 32 bytes, params: 1, frame: 12 const env0_0 = env1_4(_fun63100); return _fun63102; } function _fun63114(a0) { // fn#63114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:16417, offset: 0x01b70cbe, size: 169 bytes, params: 2, frame: 16 var r3; var r0; const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType; const binding = env0_0; const value2 = binding.includes(a0.type); if (value2) { r3 = importDefault ? a0.inputType === ApplicationCommandInputType.BUILT_IN_TEXT : !importDefault; r3 = !r3 ? a0.inputType === ApplicationCommandInputType.BUILT_IN_INTEGRATION : r3; r0 = r3; } else { r0 = value2; } r0 = r0 && (enabled || a0.untranslatedName !== 'roll-dice'); return r0; } function* _fun63054() { // fn#63054, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:8226, offset: 0x01b6fa4a, size: 300 bytes, params: 1, frame: 24 if (true) { value = environment.__proto__.__proto__.__proto__; var binding = env3_7; var user = binding.getUser(env2_3); if (user == null) { throw new global.Error(); } var value5 = env3_1(env3_2[22]); var kickUser = value5.kickUser; var id = importDefault.id; binding = env2_3; yield Reflect.apply(kickUser, value5, [id, binding, env3_14(require, 'reason') ?? '']); if (false) { return undefined; } binding = env3_1; var binding3 = env3_2; var value10 = binding(binding3[20]); var sendBotMessage = value10.sendBotMessage; id = dependencyMap.id; var binding4 = env3_0; var intl = binding4(binding3[10]).intl; var formatToPlainString = intl.formatToPlainString; var property = binding4(binding3[10]).t['9wzHDV']; var object2 = {}; object2.user = binding(binding3[23]).getUserTag(user); Reflect.apply(sendBotMessage, value10, [id, Reflect.apply(formatToPlainString, intl, [property, object2])]); } } function* _fun63070() { // fn#63070, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:10897, offset: 0x01b701b5, size: 360 bytes, params: 1, frame: 26 var r10; if (true) { value = environment.__proto__.__proto__; var value3 = ''; if (value3 === env2_3) { throw new global.Error(); } var binding = env3_14; var r6 = binding(require, 'delete_messages') ?? 0; var r7 = env3_14(require, 'reason') ?? value3; var user = env3_7.getUser(env2_3); var value9 = env3_1(env3_2[22]); var banUser = value9.banUser; var id = importDefault.id; yield Reflect.apply(banUser, value9, [id, env2_3, r6, r7]); if (false) { return undefined; } binding = env3_1; var binding2 = env3_2; var value12 = binding(binding2[20]); var sendBotMessage = value12.sendBotMessage; id = dependencyMap.id; binding = env3_0; var intl = binding(binding2[10]).intl; var formatToPlainString = intl.formatToPlainString; var YflWdM = binding(binding2[10]).t.YflWdM; if (user != null) { value = env3_1(env3_2[23]); value = value.getUserTag(user); r10 = value; } else { r10 = env2_3; } Reflect.apply(sendBotMessage, value12, [id, Reflect.apply(formatToPlainString, intl, [YflWdM, {user: r10}])]); } } function* _fun63087() { // fn#63087, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:12792, offset: 0x01b70606, size: 398 bytes, params: 1, frame: 24 if (true) { value = environment.__proto__.__proto__.__proto__; var binding = env3_14; var value4 = binding(require, 'duration'); var value5 = ''; var r10 = value4 ?? value5; var r7 = env3_14(require, 'reason') ?? value5; var user = env3_7.getUser(env2_3); if (user == null) { throw new global.Error(); } binding = env3_1; var binding2 = env3_2; var value8 = binding(binding2[22]); var setCommunicationDisabledUntil = value8.setCommunicationDisabledUntil; var object2 = {}; var id = importDefault.id; object2.guildId = id; object2.userId = env2_3; object2.communicationDisabledUntilTimestamp = binding(binding2[26])().add(r10, 's').toISOString(); object2.duration = r10; object2.reason = r7; yield Reflect.apply(setCommunicationDisabledUntil, value8, [object2]); if (false) { return undefined; } binding = env3_1; var binding3 = env3_2; var value13 = binding(binding3[20]); var sendBotMessage = value13.sendBotMessage; id = dependencyMap.id; var binding4 = env3_0; var intl = binding4(binding3[10]).intl; var formatToPlainString = intl.formatToPlainString; var BbRV6o = binding4(binding3[10]).t.BbRV6o; object2 = {}; object2.user = binding(binding3[23]).getUserTag(user); object2.duration = r10; Reflect.apply(sendBotMessage, value13, [id, Reflect.apply(formatToPlainString, intl, [BbRV6o, object2])]); } } function* _fun63100() { // fn#63100, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14465, offset: 0x01b70950, size: 93 bytes, params: 1, frame: 14 var environment; if (true) { value = environment.__proto__.__proto__.__proto__; value = Reflect.apply(env3_1(env3_2[27]).openPrivateChannel, value, [{recipientIds: importDefault}]); yield value.then(_fun63101); } } function _fun63101(a0) { // fn#63101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14535, offset: 0x01b709ad, size: 147 bytes, params: 2, frame: 20 let binding = env4_5; const channel = binding.getChannel(a0); binding = env4_1; const binding2 = env4_2; binding(binding2[28])(channel != null, 'Newly created PrivateChannel is null'); const value4 = binding(binding2[20]); const sendMessage = value4.sendMessage; const id = channel.id; const value7 = binding(binding2[21]).parse(channel, dependencyMap); const PRIVATE_MESSAGE_COMMAND = env4_13.PRIVATE_MESSAGE_COMMAND; Reflect.apply(sendMessage, value4, [id, value7, true, {location: PRIVATE_MESSAGE_COMMAND}]); }