Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Module ID: 10535
|
|
// Function ID: 10536
|
|
// Name: getStickerDiscoverableGuild
|
|
// Dependencies: [1074, 1270, 7444, 2]
|
|
// Exports: default
|
|
|
|
// Module 10535 (getStickerDiscoverableGuild)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import HTTPUtils from "HTTPUtils" /* 1270 */;
|
|
import GuildDiscoveryUtils from "GuildDiscoveryUtils" /* 7444 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const Endpoints = Constants.Endpoints;
|
|
const result = size.fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
|
|
|
|
export default function getStickerDiscoverableGuild(arg0) {
|
|
const HTTP = HTTPUtils.HTTP;
|
|
value = HTTP.get({ url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true });
|
|
let obj = { url: Endpoints.STICKER_GUILD_DATA(arg0), oldFormErrors: true, rejectWithError: true };
|
|
return value.then((body) => {
|
|
body = undefined;
|
|
if (body != null) {
|
|
body = body.body;
|
|
}
|
|
let discoverableGuild = null;
|
|
if (null != body) {
|
|
discoverableGuild = GuildDiscoveryUtils.makeDiscoverableGuild(body.body);
|
|
}
|
|
return discoverableGuild;
|
|
}).catch(() => null);
|
|
};
|