decord/source/modules/guild/BasicGuildStore.tsx

55 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7846
// Function ID: 7847
2026-07-29 08:29:29 +00:00
// Name: getGuild
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-05 07:35:12 +00:00
// Module 7846 (getGuild)
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = 0;
let closure_1 = {};
class BasicGuildStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = BasicGuildStore.prototype;
prototype["getGuild"] = function getGuild(arg0) {
if (null != dependencyMap[arg0]) {
if (!("type" in tmp)) {
return tmp;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
};
prototype["isGuildFetching"] = function isGuildFetching(arg0) {
let tmp2 = null != tmp;
if (tmp2) {
tmp2 = "type" in tmp;
}
if (tmp2) {
tmp2 = "loading" === tmp.type;
}
return tmp2;
};
prototype["getGuildOrStatus"] = function getGuildOrStatus(arg0) {
return dependencyMap[arg0];
};
prototype["getVersion"] = function getVersion() {
return c0;
};
BasicGuildStore.displayName = "BasicGuildStore";
const basicGuildStore = new BasicGuildStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
BASIC_GUILD_FETCH: function handleBasicGuildFetch(guildId) {
2026-07-29 08:29:29 +00:00
closure_1[guildId.guildId] = { type: "loading" };
2026-07-20 16:05:17 +00:00
return false;
},
BASIC_GUILD_FETCH_SUCCESS: function handleBasicGuildFetchSuccess(guildId) {
2026-07-29 08:29:29 +00:00
closure_1[guildId.guildId] = guildId.guildInfo;
closure_0 = closure_0 + 1;
2026-07-20 16:05:17 +00:00
},
BASIC_GUILD_FETCH_FAILURE: function handleBasicGuildFetchFailure(guildId) {
2026-07-29 08:29:29 +00:00
closure_1[guildId.guildId] = { type: "failed" };
2026-07-20 16:05:17 +00:00
return false;
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/guild/BasicGuildStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default basicGuildStore;