31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// Module ID: 10406
|
|
// Function ID: 10407
|
|
// Name: getStickerDiscoverableGuild
|
|
// Dependencies: [1074, 1272, 7341, 2]
|
|
// Exports: default
|
|
|
|
// Module 10406 (getStickerDiscoverableGuild)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 1074 */;
|
|
import sendRequest from "sendRequest" /* 1272 */;
|
|
|
|
const Endpoints = ME.Endpoints;
|
|
const result = set.fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
|
|
|
|
export default function getStickerDiscoverableGuild(arg0) {
|
|
const HTTP = sendRequest.HTTP;
|
|
const 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 = callback(table[2]).makeDiscoverableGuild(body.body);
|
|
const obj = callback(table[2]);
|
|
}
|
|
return discoverableGuild;
|
|
}).catch(() => null);
|
|
};
|