decord/source/stores/GeoRestrictedGuildStore.tsx

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13213
// Function ID: 13214
2026-07-29 08:29:29 +00:00
// Name: getGeoRestrictedGuilds
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 13213 (getGeoRestrictedGuilds)
2026-08-24 06:08:38 +00:00
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 closure_0 = [];
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class GeoRestrictedGuildStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
GeoRestrictedGuildStore.prototype["getGeoRestrictedGuilds"] = function getGeoRestrictedGuilds() {
return closure_0;
};
GeoRestrictedGuildStore.displayName = "GeoRestrictedGuildStore";
2026-08-24 06:08:38 +00:00
const geoRestrictedGuildStore = new GeoRestrictedGuildStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen(geoRestrictedGuilds) {
geoRestrictedGuilds = geoRestrictedGuilds.geoRestrictedGuilds;
},
GUILD_DELETE: function handleDeleteGuild(guild) {
guild = guild.guild;
2026-07-29 08:29:29 +00:00
if (-1 === guild.findIndex((id) => id.id === user.id)) {
2026-07-20 16:05:17 +00:00
return false;
} else {
2026-07-29 08:29:29 +00:00
guild = guild.filter((id) => id.id !== user.id);
2026-07-20 16:05:17 +00:00
}
},
GUILD_GEO_RESTRICTED: function handleGeoRestrictGuild(guildId) {
2026-07-29 08:29:29 +00:00
let found = guildId;
found = found.filter((id) => id.id !== found.guildId);
2026-07-20 16:05:17 +00:00
found.push({ id: guildId.guildId, name: guildId.name, icon: guildId.icon, unavailable: true, geo_restricted: true });
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("stores/GeoRestrictedGuildStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default geoRestrictedGuildStore;