28 lines
1,006 B
TypeScript
28 lines
1,006 B
TypeScript
// Module ID: 10022
|
|
// Function ID: 10023
|
|
// Name: getStickerDiscoverableGuild
|
|
// Dependencies: [676, 530, 5997, 2]
|
|
// Exports: default
|
|
|
|
// Module 10022 (getStickerDiscoverableGuild)
|
|
import { Endpoints } from "ME";
|
|
|
|
const result = require("_startLurking").fileFinishedImporting("modules/messages/getStickerDiscoverableGuild.tsx");
|
|
|
|
export default function getStickerDiscoverableGuild(arg0) {
|
|
const HTTP = require(530) /* 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);
|
|
};
|