decord/source/modules/guild/BasicGuildStore.tsx

57 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8220
// Function ID: 8221
2026-07-29 08:29:29 +00:00
// Name: getGuild
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 8220 (getGuild)
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = 0;
let closure_1 = {};
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
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";
2026-08-24 06:08:38 +00:00
const basicGuildStore = new BasicGuildStore(dispatcherDefault, {
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;