Files
discord-decomp/sources/modules/application_commands/ApplicationCommandConstants.tsx
T
2026-07-27 16:20:00 +03:00

72 lines
3.3 KiB
TypeScript

/* Metro module 5066; source: modules/application_commands/ApplicationCommandConstants.tsx; dependencies: [1244, 1909, 2] */
function _fun43827(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5244:6, offset: 0x0115ffea, size: 358 bytes, params: 8, frame: 22
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
Object = global.Object;
const value = Object.freeze([]);
Object = global.Object;
const value2 = Object.freeze([]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/ApplicationCommandConstants.tsx');
exports.TRUE_OPTION_NAME = 'True';
exports.FALSE_OPTION_NAME = 'False';
exports.BOOLEAN_CHOICES = [{'name': 'True', 'displayName': 'True', 'value': 'true'}, {'name': 'False',
'displayName': 'False', 'value': 'false'}];
exports.BuiltInSectionId = {BUILT_IN: '-1', FRECENCY: '-2'};
exports.DISCOVERY_COMMANDS_QUERY_LIMIT_WEB = 10;
exports.DISCOVERY_COMMANDS_QUERY_LIMIT_MOBILE = 5;
exports.DISCOVERY_COMMANDS_QUERY_LIMIT = 5;
exports.DISCOVERY_COMMANDS_FRECENCY_LIMIT = 5;
exports.DISCOVERY_COMMAND_FRECENCY_GATEWAY_LIMIT = 25;
exports.SUB_COMMAND_KEY_SEPARATOR = '\x00';
exports.APPLICATION_COMMAND_PERMISSIONS_LIMIT = 100;
exports.MAX_SUBCOMMAND_LEVEL = 3;
exports.CONTEXT_MENU_COMMANDS_QUERY_LIMIT = 10;
exports.AUTOCOMPLETE_OPTION_DEBOUNCE_TIME = 500;
exports.EMPTY_COMMANDS = value;
exports.EMPTY_COMMANDS_SECTION = value2;
exports.APPLICATION_USER_INSTALL_BETA_USER_LIMIT = 200;
exports.getValidationErrorText = getValidationErrorText;
}
function getValidationErrorText({choices, type}) { // fn#43828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5244:970, offset: 0x01160150, size: 807 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
if (choices != null) {
return intl.string(t.xi5aah);
}
const ApplicationCommandOptionType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandOptionType;
const BOOLEAN = ApplicationCommandOptionType.BOOLEAN;
if (BOOLEAN === type) {
return intl.string(t.ATIx6O);
}
const CHANNEL = ApplicationCommandOptionType.CHANNEL;
if (CHANNEL === type) {
return intl.string(t.Q0z2Gx);
}
const INTEGER = ApplicationCommandOptionType.INTEGER;
if (INTEGER === type) {
return intl.string(t['d/9Rk4']);
}
const NUMBER = ApplicationCommandOptionType.NUMBER;
if (NUMBER === type) {
return intl.string(t['FDyk/V']);
}
const ROLE = ApplicationCommandOptionType.ROLE;
if (ROLE === type) {
return intl.string(t.vrRQn0);
}
const USER = ApplicationCommandOptionType.USER;
if (USER === type) {
return intl.string(t.i2r7j5);
}
const MENTIONABLE = ApplicationCommandOptionType.MENTIONABLE;
if (MENTIONABLE === type) {
return intl.string(t.I7imec);
}
const string = intl.string;
const EkDo1i = t.EkDo1i;
return Reflect.apply(string, intl, [EkDo1i]);
}