2026-10-12 06:59:38 +00:00
|
|
|
// Module ID: 9781
|
|
|
|
|
// Function ID: 9782
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getStickerDiscoverableGuild
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [1085, 1295, 7052, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-12 06:59:38 +00:00
|
|
|
// Module 9781 (getStickerDiscoverableGuild)
|
2026-10-03 08:58:59 +00:00
|
|
|
import Constants from "Constants" /* 1085 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import HTTPUtils from "HTTPUtils" /* 1295 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import GuildDiscoveryUtils from "GuildDiscoveryUtils" /* 7052 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let body;
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const Endpoints = Constants.Endpoints;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getStickerDiscoverableGuild(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const HTTP = HTTPUtils.HTTP;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true };
|
2026-10-03 08:58:59 +00:00
|
|
|
const value = HTTP.get(obj);
|
|
|
|
|
const nextPromise = value.then((body) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
body = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (body != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
body = body.body;
|
|
|
|
|
}
|
|
|
|
|
let discoverableGuild = null;
|
|
|
|
|
if (null != body) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = GuildDiscoveryUtils;
|
|
|
|
|
discoverableGuild = obj.makeDiscoverableGuild(body.body);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return discoverableGuild;
|
2026-10-03 08:58:59 +00:00
|
|
|
});
|
|
|
|
|
return nextPromise.catch(() => null);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|