Files
discord-decomp/sources/modules/application_commands/ApplicationCommandBuiltIns.tsx
T
2026-07-28 01:06:53 +03:00

1077 lines
59 KiB
TypeScript

/* 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] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import DiceRollExperiment from '../dice_roll/DiceRollExperiment.tsx'; /* Metro dependency 8038 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ServerModule from '../../flow/Server.tsx'; /* Metro dependency 1909 */
import * as GuildDisableCommunicationConstantsModule from '../guild_communication_disabled/GuildDisableCommunicationConstants.tsx'; /* Metro dependency 1947 */
import * as MessageConstantsModule from '../messages/MessageConstants.tsx'; /* Metro dependency 4503 */
import * as ApplicationCommandConstantsModule from './ApplicationCommandConstants.tsx'; /* Metro dependency 5066 */
import * as ApplicationCommandTypesModule from './ApplicationCommandTypes.tsx'; /* Metro dependency 5068 */
import * as DiceRollConstantsModule from '../dice_roll/DiceRollConstants.tsx'; /* Metro dependency 7872 */
import * as UseMessageMaxLengthModule from '../messages/useMessageMaxLength.tsx'; /* Metro dependency 7875 */
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
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Module00005;
const BuiltInSectionId = (ApplicationCommandConstantsModule).BuiltInSectionId;
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} = DiceRollConstantsModule;
const getOptionValue = function(a0, a1) {
var env0_0 = a1;
return a0.find(_fun62993)?.value;
};
object = {};
let BUILT_IN = BuiltInSectionId.BUILT_IN;
const object2 = {};
const BUILT_IN2 = BuiltInSectionId.BUILT_IN;
object2.id = BUILT_IN2;
const ApplicationCommandSectionType = (ApplicationCommandTypesModule).ApplicationCommandSectionType;
const BUILT_IN3 = ApplicationCommandSectionType.BUILT_IN;
object2.type = BUILT_IN3;
Object.defineProperty(object2, 'name', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.fI5MTa);
}, set: undefined, enumerable: true, configurable: true});
object[BUILT_IN] = object2;
const FRECENCY = BuiltInSectionId.FRECENCY;
const object3 = {};
const FRECENCY2 = BuiltInSectionId.FRECENCY;
object3.id = FRECENCY2;
BUILT_IN = ApplicationCommandSectionType.BUILT_IN;
object3.type = BUILT_IN;
Object.defineProperty(object3, 'name', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['+cGVV6']);
}, set: undefined, enumerable: true, configurable: true});
object[FRECENCY] = object3;
const property = (require(7873) /* metro dependency 7873: ApplicationCommandBuiltIns */).default;
const items2 = [];
const value4 = arraySpread(items2, property, 0, undefined);
const object4 = {'id': '-1', 'untranslatedName': 'shrug', 'displayName': 'shrug'};
const ApplicationCommandType = (ServerModule).ApplicationCommandType;
let CHAT = ApplicationCommandType.CHAT;
object4.type = CHAT;
const ApplicationCommandInputType = (ApplicationCommandTypesModule).ApplicationCommandInputType;
let BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object4.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object4.applicationId = BUILT_IN;
Object.defineProperty(object4, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.j5xUSW);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object4, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.j5xUSW);
}, set: undefined, enumerable: true, configurable: true});
const object5 = {'name': 'message', 'displayName': 'message'};
const ApplicationCommandOptionType = (ServerModule).ApplicationCommandOptionType;
let STRING = ApplicationCommandOptionType.STRING;
object5.type = STRING;
Object.defineProperty(object5, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.JewOrS);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object5, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.JewOrS);
}, set: undefined, enumerable: true, configurable: true});
object4.options = [object5];
object4.execute = execute;
items2[value4] = object4;
const value5 = value4 + 1;
const object6 = {'id': '-2', 'untranslatedName': 'tableflip', 'displayName': 'tableflip'};
CHAT = ApplicationCommandType.CHAT;
object6.type = CHAT;
BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object6.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object6.applicationId = BUILT_IN;
Object.defineProperty(object6, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.nrQRce);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object6, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.nrQRce);
}, set: undefined, enumerable: true, configurable: true});
const object7 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object7.type = STRING;
Object.defineProperty(object7, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.EI80tw);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object7, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.EI80tw);
}, set: undefined, enumerable: true, configurable: true});
object6.options = [object7];
object6.execute = execute_63005;
items2[value5] = object6;
const value6 = value5 + 1;
const object8 = {'id': '-3', 'untranslatedName': 'unflip', 'displayName': 'unflip'};
CHAT = ApplicationCommandType.CHAT;
object8.type = CHAT;
BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object8.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object8.applicationId = BUILT_IN;
Object.defineProperty(object8, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pnnn8e);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object8, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pnnn8e);
}, set: undefined, enumerable: true, configurable: true});
const object9 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object9.type = STRING;
Object.defineProperty(object9, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.ETs6go);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object9, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.ETs6go);
}, set: undefined, enumerable: true, configurable: true});
object8.options = [object9];
object8.execute = execute_63010;
items2[value6] = object8;
const value7 = value6 + 1;
const object10 = {'id': '-4', 'untranslatedName': 'tts', 'displayName': 'tts'};
CHAT = ApplicationCommandType.CHAT;
object10.type = CHAT;
BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object10.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object10.applicationId = BUILT_IN;
Object.defineProperty(object10, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.jZcIid);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object10, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.jZcIid);
}, set: undefined, enumerable: true, configurable: true});
const object11 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object11.type = STRING;
Object.defineProperty(object11, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['k+sw9g']);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object11, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['k+sw9g']);
}, set: undefined, enumerable: true, configurable: true});
object11.required = true;
object10.options = [object11];
object10.predicate = predicate_63015;
object10.execute = execute_63016;
items2[value7] = object10;
const value8 = value7 + 1;
const object12 = {'id': '-5', 'untranslatedName': 'me', 'displayName': 'me'};
CHAT = ApplicationCommandType.CHAT;
object12.type = CHAT;
BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object12.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object12.applicationId = BUILT_IN;
Object.defineProperty(object12, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UGO8fU);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object12, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UGO8fU);
}, set: undefined, enumerable: true, configurable: true});
const object13 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object13.type = STRING;
Object.defineProperty(object13, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.RWTgNd);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object13, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.RWTgNd);
}, set: undefined, enumerable: true, configurable: true});
object13.required = true;
object12.options = [object13];
object12.execute = execute_63021;
items2[value8] = object12;
const value9 = value8 + 1;
const object14 = {'id': '-6', 'untranslatedName': 'spoiler', 'displayName': 'spoiler'};
CHAT = ApplicationCommandType.CHAT;
object14.type = CHAT;
BUILT_IN_TEXT = ApplicationCommandInputType.BUILT_IN_TEXT;
object14.inputType = BUILT_IN_TEXT;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object14.applicationId = BUILT_IN;
Object.defineProperty(object14, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.v0eDdV);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object14, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.v0eDdV);
}, set: undefined, enumerable: true, configurable: true});
const object15 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object15.type = STRING;
Object.defineProperty(object15, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.D13pbc);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object15, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.D13pbc);
}, set: undefined, enumerable: true, configurable: true});
object15.required = true;
object14.options = [object15];
object14.execute = execute_63026;
items2[value9] = object14;
const value10 = value9 + 1;
const object16 = {'id': '-7', 'untranslatedName': 'nick', 'displayName': 'nick'};
CHAT = ApplicationCommandType.CHAT;
object16.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object16.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object16.applicationId = BUILT_IN;
Object.defineProperty(object16, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['jiHfS/']);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object16, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['jiHfS/']);
}, set: undefined, enumerable: true, configurable: true});
const object17 = {'name': 'new_nick', 'displayName': 'new_nick'};
STRING = ApplicationCommandOptionType.STRING;
object17.type = STRING;
Object.defineProperty(object17, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.WTSzVu);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object17, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.WTSzVu);
}, set: undefined, enumerable: true, configurable: true});
object17.maxLength = DISPLAY_NAME_MAX_LENGTH;
object16.options = [object17];
object16.predicate = function({channel}) {
return channel != null && !channel.isPrivate() && (PermissionStore.can(Permissions.CHANGE_NICKNAME,
channel) || PermissionStore.can(Permissions.MANAGE_NICKNAMES, channel));
};
object16.execute = execute_63032;
items2[value10] = object16;
const value11 = value10 + 1;
const object18 = {'id': '-10', 'untranslatedName': 'thread', 'displayName': 'thread'};
CHAT = ApplicationCommandType.CHAT;
object18.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object18.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object18.applicationId = BUILT_IN;
Object.defineProperty(object18, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.t6ZAS0);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object18, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.t6ZAS0);
}, set: undefined, enumerable: true, configurable: true});
const object19 = {'name': 'name', 'displayName': 'name'};
STRING = ApplicationCommandOptionType.STRING;
object19.type = STRING;
Object.defineProperty(object19, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.TffOfY);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object19, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.TffOfY);
}, set: undefined, enumerable: true, configurable: true});
object19.required = true;
object19.maxLength = MAX_CHANNEL_NAME_LENGTH;
const items9 = [object19];
const object20 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object20.type = STRING;
Object.defineProperty(object20, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QXfSfU);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object20, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QXfSfU);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object20, 'maxLength', {get: _fun63039, set: undefined, enumerable: true, configurable: true});
object20.required = true;
items9[1] = object20;
object18.options = items9;
object18.predicate = predicate_63040;
const env0_3 = value(_fun63042);
object18.execute = execute_63043;
items2[value11] = object18;
value = value11 + 1;
const object21 = {'id': '-11', 'untranslatedName': 'kick', 'displayName': 'kick'};
CHAT = ApplicationCommandType.CHAT;
object21.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object21.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object21.applicationId = BUILT_IN;
Object.defineProperty(object21, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['03N0UL']);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object21, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['03N0UL']);
}, set: undefined, enumerable: true, configurable: true});
const object22 = {'name': 'user', 'displayName': 'user'};
let USER = ApplicationCommandOptionType.USER;
object22.type = USER;
Object.defineProperty(object22, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.gF8IpD);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object22, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.gF8IpD);
}, set: undefined, enumerable: true, configurable: true});
object22.required = true;
const items10 = [object22];
const object23 = {'name': 'reason', 'displayName': 'reason'};
STRING = ApplicationCommandOptionType.STRING;
object23.type = STRING;
Object.defineProperty(object23, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QWldgj);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object23, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.QWldgj);
}, set: undefined, enumerable: true, configurable: true});
object23.required = false;
items10[1] = object23;
object21.options = items10;
object21.predicate = function({guild}) {
return PermissionStore.can(Permissions.KICK_MEMBERS, guild);
};
object21.execute = execute_63051;
items2[value] = object21;
value += 1;
const object24 = {'id': '-12', 'untranslatedName': 'ban', 'displayName': 'ban'};
CHAT = ApplicationCommandType.CHAT;
object24.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object24.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object24.applicationId = BUILT_IN;
Object.defineProperty(object24, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.HWuskv);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object24, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.HWuskv);
}, set: undefined, enumerable: true, configurable: true});
const object25 = {'name': 'user', 'displayName': 'user'};
USER = ApplicationCommandOptionType.USER;
object25.type = USER;
Object.defineProperty(object25, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.z3XPjr);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object25, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.z3XPjr);
}, set: undefined, enumerable: true, configurable: true});
object25.required = true;
const items11 = [object25];
const object26 = {'name': 'delete_messages', 'displayName': 'delete_messages'};
let INTEGER = ApplicationCommandOptionType.INTEGER;
object26.type = INTEGER;
Object.defineProperty(object26, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.smrvA6);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object26, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.smrvA6);
}, set: undefined, enumerable: true, configurable: true});
object26.required = true;
Object.defineProperty(object26, 'choices', {get: _fun63063, set: undefined, enumerable: true, configurable: true});
items11[1] = object26;
const object27 = {'name': 'reason', 'displayName': 'reason'};
STRING = ApplicationCommandOptionType.STRING;
object27.type = STRING;
Object.defineProperty(object27, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.dG4noU);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object27, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.dG4noU);
}, set: undefined, enumerable: true, configurable: true});
object27.required = false;
items11[2] = object27;
object24.options = items11;
object24.predicate = function({guild}) {
return PermissionStore.can(Permissions.BAN_MEMBERS, guild);
};
object24.execute = execute_63067;
items2[value] = object24;
value += 1;
const object28 = {'id': '-13', 'untranslatedName': 'timeout', 'displayName': 'timeout'};
CHAT = ApplicationCommandType.CHAT;
object28.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object28.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object28.applicationId = BUILT_IN;
Object.defineProperty(object28, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.KkPcep);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object28, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.KkPcep);
}, set: undefined, enumerable: true, configurable: true});
const object29 = {'name': 'user', 'displayName': 'user'};
USER = ApplicationCommandOptionType.USER;
object29.type = USER;
Object.defineProperty(object29, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UU3VRm);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object29, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.UU3VRm);
}, set: undefined, enumerable: true, configurable: true});
object29.required = true;
const items12 = [object29];
const object30 = {'name': 'duration', 'displayName': 'duration'};
INTEGER = ApplicationCommandOptionType.INTEGER;
object30.type = INTEGER;
Object.defineProperty(object30, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.SNqN1e);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object30, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.SNqN1e);
}, set: undefined, enumerable: true, configurable: true});
object30.required = true;
Object.defineProperty(object30, 'choices', {get: _fun63079, set: undefined, enumerable: true, configurable: true});
items12[1] = object30;
const object31 = {'name': 'reason', 'displayName': 'reason'};
STRING = ApplicationCommandOptionType.STRING;
object31.type = STRING;
Object.defineProperty(object31, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.akHScA);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object31, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.akHScA);
}, set: undefined, enumerable: true, configurable: true});
object31.required = false;
items12[2] = object31;
object28.options = items12;
object28.predicate = function({guild}) {
return PermissionStore.can(Permissions.MODERATE_MEMBERS, guild);
};
object28.execute = execute_63084;
items2[value] = object28;
value += 1;
const object32 = {'id': '-14', 'untranslatedName': 'msg', 'displayName': 'msg'};
CHAT = ApplicationCommandType.CHAT;
object32.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object32.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object32.applicationId = BUILT_IN;
Object.defineProperty(object32, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.Dg8XZw);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object32, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.Dg8XZw);
}, set: undefined, enumerable: true, configurable: true});
const object33 = {'name': 'user', 'displayName': 'user'};
USER = ApplicationCommandOptionType.USER;
object33.type = USER;
Object.defineProperty(object33, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['KmVq/D']);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object33, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t['KmVq/D']);
}, set: undefined, enumerable: true, configurable: true});
object33.required = true;
const items13 = [object33];
const object34 = {'name': 'message', 'displayName': 'message'};
STRING = ApplicationCommandOptionType.STRING;
object34.type = STRING;
Object.defineProperty(object34, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.oGUuOJ);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object34, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.oGUuOJ);
}, set: undefined, enumerable: true, configurable: true});
object34.required = true;
Object.defineProperty(object34, 'maxLength', {get: _fun63096, set: undefined, enumerable: true, configurable: true});
items13[1] = object34;
object32.options = items13;
object32.execute = execute_63097;
items2[value] = object32;
const object35 = {'id': '-18', 'untranslatedName': 'roll-dice', 'displayName': 'roll-dice'};
CHAT = ApplicationCommandType.CHAT;
object35.type = CHAT;
BUILT_IN = ApplicationCommandInputType.BUILT_IN;
object35.inputType = BUILT_IN;
BUILT_IN = BuiltInSectionId.BUILT_IN;
object35.applicationId = BUILT_IN;
Object.defineProperty(object35, 'untranslatedDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.reVgOh);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object35, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.reVgOh);
}, set: undefined, enumerable: true, configurable: true});
const object36 = {'name': 'count', 'displayName': 'count'};
INTEGER = ApplicationCommandOptionType.INTEGER;
object36.type = INTEGER;
Object.defineProperty(object36, '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(object36, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.formatToPlainString(require(dependencyMap[10]).t.iSbJTZ,
{max: MAX_DICE_COUNT});
}, set: undefined, enumerable: true, configurable: true});
object36.minValue = 1;
object36.maxValue = MAX_DICE_COUNT;
const items14 = [object36];
const object37 = {'name': 'size', 'displayName': 'size'};
INTEGER = ApplicationCommandOptionType.INTEGER;
object37.type = INTEGER;
Object.defineProperty(object37, 'description', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pV214H);
}, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object37, 'displayDescription', {get: function() {
return require(dependencyMap[10]).intl.string(require(dependencyMap[10]).t.pV214H);
}, set: undefined, enumerable: true, configurable: true});
object37.choices = ALLOWED_DICE_SIDES.map(function(a0) {
return {name: 'D' + a0, displayName: 'D' + a0, value: a0};
});
items14[1] = object37;
object35.options = items14;
object35.execute = execute_63111;
items2[value + 1] = object35;
value = items2.filter(function(a0) {
return ['gif', 'tenor', 'tts', 'me', 'tableflip', 'unflip', 'shrug', 'spoiler',
'nick'].includes(a0.untranslatedName);
});
(FileImportTrackerModule).fileFinishedImporting('modules/application_commands/ApplicationCommandBuiltIns.tsx');
exports.PLATFORM_COMMANDS = (require(7873) /* metro dependency 7873: ApplicationCommandBuiltIns */).default;
exports.BUILT_IN_SECTIONS = object;
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 _fun62993({name}) { // fn#62993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:467, offset: 0x00e6222e, size: 21 bytes, params: 2, frame: 2
return name === require;
}
}
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 object = {};
let value = getOptionValue(a0, 'message');
const value2 = '';
value = value2 + (value ?? value2) + ' ¯\\_(ツ)_/¯';
object.content = value.trim();
return object;
}
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 object = {};
let value = getOptionValue(a0, 'message');
const value2 = '';
value = value2 + (value ?? value2) + ' (╯°□°)╯︵ ┻━┻';
object.content = value.trim();
return object;
}
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 object = {};
let value = getOptionValue(a0, 'message');
const value2 = '';
value = value2 + (value ?? value2) + ' ┬─┬ノ( º _ ºノ)';
object.content = value.trim();
return object;
}
function predicate_63015({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 object = {};
object.content = MARKDOWN_SPOILER_WRAPPER(r2).trim();
return object;
}
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 (UseMessageMaxLengthModule).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_63043() { // fn#63043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:7149, offset: 0x00d6afe6, size: 30 bytes, params: 1, frame: 13
return env0_3.apply(this, arguments);
}
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 r7;
var permissionStoreBinding;
var defaultImport;
var sendBotMessage;
var id;
var intl;
const env0_0 = a0;
if (guild != null) {
if (channel != null) {
r7 = getOptionValue(a0, 'user') ?? '';
permissionStoreBinding = PermissionStore;
if (permissionStoreBinding.canManageUser(Permissions.KICK_MEMBERS, r7, 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 _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* _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 object = {};
object.user = binding(binding3[23]).getUserTag(user);
Reflect.apply(sendBotMessage, value10, [id, Reflect.apply(formatToPlainString, intl, [property, object])]);
}
}
function _fun63055() { // fn#63055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:8486, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
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 object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.name = Reflect.apply(string, intl, [t['4obaMS']]);
object.displayName = intl.string(t['4obaMS']);
object.value = 0;
const items2 = [object];
object = {};
string = intl.string;
let RKpitY = t.RKpitY;
object.name = Reflect.apply(string, intl, [RKpitY]);
string = intl.string;
RKpitY = t.RKpitY;
object.displayName = Reflect.apply(string, intl, [RKpitY]);
let Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
let HOUR = Seconds.HOUR;
object.value = HOUR;
items2[1] = object;
object = {};
object.name = intl.string(t['8WfJZ8']);
object.displayName = intl.string(t['8WfJZ8']);
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
HOUR = Seconds.HOUR;
object.value = 6 * HOUR;
items2[2] = object;
object = {};
object.name = intl.string(t.p1up7u);
object.displayName = intl.string(t.p1up7u);
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
HOUR = Seconds.HOUR;
object.value = 12 * HOUR;
items2[3] = object;
object = {};
string = intl.string;
let XuVkkD = t.XuVkkD;
object.name = Reflect.apply(string, intl, [XuVkkD]);
string = intl.string;
XuVkkD = t.XuVkkD;
object.displayName = Reflect.apply(string, intl, [XuVkkD]);
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
let DAY = Seconds.DAY;
object.value = DAY;
items2[4] = object;
object = {};
object.name = intl.string(t['gMcDS+']);
object.displayName = intl.string(t['gMcDS+']);
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
DAY = Seconds.DAY;
object.value = 3 * DAY;
items2[5] = object;
object = {};
string = intl.string;
let FA7IUk = t.FA7IUk;
object.name = Reflect.apply(string, intl, [FA7IUk]);
string = intl.string;
FA7IUk = t.FA7IUk;
object.displayName = Reflect.apply(string, intl, [FA7IUk]);
Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
DAY = Seconds.DAY;
object.value = 7 * DAY;
items2[6] = object;
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 r7;
var permissionStoreBinding;
var defaultImport;
var sendBotMessage;
var id;
var intl;
const env0_0 = a0;
if (guild != null) {
if (channel != null) {
r7 = getOptionValue(a0, 'user') ?? '';
permissionStoreBinding = PermissionStore;
if (permissionStoreBinding.canManageUser(Permissions.BAN_MEMBERS, r7, 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 _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* _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 _fun63071() { // fn#63071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:11226, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
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 _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* _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 object = {};
var id = importDefault.id;
object.guildId = id;
object.userId = env2_3;
object.communicationDisabledUntilTimestamp = binding(binding2[26])().add(r10, 's').toISOString();
object.duration = r10;
object.reason = r7;
yield Reflect.apply(setCommunicationDisabledUntil, value8, [object]);
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;
object = {};
object.user = binding(binding3[23]).getUserTag(user);
object.duration = r10;
Reflect.apply(sendBotMessage, value13, [id, Reflect.apply(formatToPlainString, intl, [BbRV6o, object])]);
}
}
function _fun63088() { // fn#63088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:13240, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function _fun63096() { // fn#63096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14266, offset: 0x01b6f6b9, size: 37 bytes, params: 1, frame: 11
return (UseMessageMaxLengthModule).getMaxMessageLength();
}
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 _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* _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}]);
}
}
function _fun63102() { // fn#63102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8049:14718, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
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 getConfig = DiceRollExperiment.getConfig;
const env0_2 = Reflect.apply(getConfig, DiceRollExperiment, [{location: 'getBuiltInCommands'}]).enabled;
return r2.filter(_fun63114);
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 = (ApplicationCommandTypesModule).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;
}
}
}
global.__d(_fun62991, 7871, [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]) /* metro module 7871, 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] */;