decord/source/modules/messages/getStickerDiscoverableGuild.tsx

32 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 10546
// Function ID: 10547
2026-07-20 16:05:17 +00:00
// Name: getStickerDiscoverableGuild
// Dependencies: [1074, 1271, 7451, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10546 (getStickerDiscoverableGuild)
import Constants from "Constants" /* 1074 */;
import HTTPUtils from "HTTPUtils" /* 1271 */;
import GuildDiscoveryUtils from "GuildDiscoveryUtils" /* 7451 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +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) {
const HTTP = HTTPUtils.HTTP;
value = HTTP.get({ url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true });
2026-07-23 10:11:24 +00:00
let obj = { url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
return value.then((body) => {
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) {
discoverableGuild = GuildDiscoveryUtils.makeDiscoverableGuild(body.body);
2026-07-20 16:05:17 +00:00
}
return discoverableGuild;
}).catch(() => null);
};