decord/source/modules/messages/getStickerDiscoverableGuild.tsx

32 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10275
// Function ID: 10276
2026-07-20 16:05:17 +00:00
// Name: getStickerDiscoverableGuild
2026-08-24 06:08:38 +00:00
// Dependencies: [676, 530, 7339, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10275 (getStickerDiscoverableGuild)
import set from "set" /* 2 */;
import sendRequest from "sendRequest" /* 530 */;
import ME from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const Endpoints = ME.Endpoints;
const result = set.fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
2026-07-20 16:05:17 +00:00
export default function getStickerDiscoverableGuild(arg0) {
2026-08-24 06:08:38 +00:00
const HTTP = sendRequest.HTTP;
2026-07-29 08:29:29 +00:00
const 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) {
2026-07-29 08:29:29 +00:00
discoverableGuild = callback(table[2]).makeDiscoverableGuild(body.body);
const obj = callback(table[2]);
2026-07-20 16:05:17 +00:00
}
return discoverableGuild;
}).catch(() => null);
};