35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
// Module ID: 10134
|
|
// Function ID: 10135
|
|
// Name: getStickerDiscoverableGuild
|
|
// Dependencies: [1085, 1282, 6844, 2]
|
|
// Exports: default
|
|
|
|
// Module 10134 (getStickerDiscoverableGuild)
|
|
import Constants from "Constants" /* 1085 */;
|
|
import HTTPUtils from "HTTPUtils" /* 1282 */;
|
|
import GuildDiscoveryUtils from "GuildDiscoveryUtils" /* 6844 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
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 };
|
|
const value = HTTP.get(obj);
|
|
const nextPromise = value.then((body) => {
|
|
body = undefined;
|
|
if (body != null) {
|
|
body = body.body;
|
|
}
|
|
let discoverableGuild = null;
|
|
if (null != body) {
|
|
const obj = GuildDiscoveryUtils;
|
|
discoverableGuild = obj.makeDiscoverableGuild(body.body);
|
|
}
|
|
return discoverableGuild;
|
|
});
|
|
return nextPromise.catch(() => null);
|
|
};
|