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

37 lines
1.9 KiB
TypeScript

/* Metro module 11068; source: modules/messages/getStickerDiscoverableGuild.tsx; dependencies: [661, 507, 6946, 2] */
function _fun84748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:6, offset: 0x01f56137, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/getStickerDiscoverableGuild.tsx');
exports.default = _default_84749;
}
function _default_84749(a0) { // fn#84749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:125, offset: 0x01f561ac, size: 113 bytes, params: 2, frame: 15
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.STICKER_GUILD_DATA(a0);
let value = Reflect.apply(get, HTTP, [object2]);
value = value.then(_fun84750);
return value.catch(function() {
return null;
});
}
function _fun84750(a0) { // fn#84750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11254:218, offset: 0x01f5621d, size: 71 bytes, params: 2, frame: 14
var r0;
let value = null;
if (value != (value == a0 ? undefined : a0.body)) {
value = environment.__proto__;
value = require(6946) /* metro dependency 6946: GuildDiscoveryUtils */;
value = value.makeDiscoverableGuild(a0.body);
r0 = value;
} else {
r0 = value;
}
return r0;
}