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

33 lines
1.4 KiB
TypeScript

/* Metro module 8447; source: modules/applications/ApplicationInteractionInfoUtils.tsx; dependencies: [1909, 2] */
function _fun67020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8632:6, offset: 0x01c1308b, size: 109 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/ApplicationInteractionInfoUtils.tsx');
exports.canViewInteractionInfo = function(a0) {
return a0.interactionMetadata != null;
};
exports.isPrimaryEntryPointCommandMessage = function(a0) {
var r6;
var r0;
var property = a0.interactionMetadata;
var value = undefined;
if (property == null) {
r6 = value;
} else {
property = property.type;
r6 = property;
}
var value3 = r6 === require(dependencyMap[0]).InteractionTypes.APPLICATION_COMMAND;
if (value3) {
property = a0.interactionMetadata;
value = (property == null ? value : property.command_type) === require(dependencyMap[0]).ApplicationCommandType.PRIMARY_ENTRY_POINT;
r0 = value;
} else {
r0 = value3;
}
return r0;
};
}