decord/beta/source/modules/messages/getStickerDiscoverableGuild.tsx

36 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 10134
// Function ID: 10135
// Name: getStickerDiscoverableGuild
2026-10-07 22:43:51 +00:00
// Dependencies: [1085, 1282, 6844, 2]
// Exports: default
2026-10-07 22:43:51 +00:00
// Module 10134 (getStickerDiscoverableGuild)
import Constants from "Constants" /* 1085 */;
import HTTPUtils from "HTTPUtils" /* 1282 */;
import GuildDiscoveryUtils from "GuildDiscoveryUtils" /* 6844 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let body;
const Endpoints = Constants.Endpoints;
const result = size.fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
export default function getStickerDiscoverableGuild(arg0) {
const HTTP = HTTPUtils.HTTP;
let obj = { url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true };
2026-10-01 14:13:23 +00:00
const value = HTTP.get(obj);
const nextPromise = value.then((body) => {
body = undefined;
if (body != null) {
body = body.body;
}
let discoverableGuild = null;
if (null != body) {
2026-10-01 14:13:23 +00:00
const obj = GuildDiscoveryUtils;
discoverableGuild = obj.makeDiscoverableGuild(body.body);
}
return discoverableGuild;
2026-10-01 14:13:23 +00:00
});
return nextPromise.catch(() => null);
};