decord/alpha/source/stores/GeoRestrictedGuildStore.tsx

43 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 14012
// Function ID: 14013
// Name: GeoRestrictedGuildStore
2026-10-03 08:58:59 +00:00
// Dependencies: [504, 584, 2]
2026-07-23 10:11:24 +00:00
2026-10-10 08:08:14 +00:00
// Module 14012 (GeoRestrictedGuildStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
let found = [];
2026-10-03 08:58:59 +00:00
const Store = get_initializedDefault.Store;
2026-07-29 08:29:29 +00:00
class GeoRestrictedGuildStore extends Store {
2026-10-03 08:58:59 +00:00
getGeoRestrictedGuilds() {
return found;
}
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const prototype = GeoRestrictedGuildStore.prototype;
2026-07-29 08:29:29 +00:00
GeoRestrictedGuildStore.displayName = "GeoRestrictedGuildStore";
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen(geoRestrictedGuilds) {
found = geoRestrictedGuilds.geoRestrictedGuilds;
2026-07-20 16:05:17 +00:00
},
GUILD_DELETE: function handleDeleteGuild(guild) {
guild = guild.guild;
if (-1 === found.findIndex((id) => id.id === guild.id)) {
2026-07-20 16:05:17 +00:00
return false;
} else {
found = found.filter((id) => id.id !== guild.id);
2026-07-20 16:05:17 +00:00
}
},
GUILD_GEO_RESTRICTED: function handleGeoRestrictGuild(guildId) {
2026-10-03 08:58:59 +00:00
let closure_0 = guildId;
found = found.filter((id) => id.id !== guildId.guildId);
2026-10-03 08:58:59 +00:00
const obj = { id: guildId.guildId, name: guildId.name, icon: guildId.icon, unavailable: true, geo_restricted: true };
found.push(obj);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
};
const geoRestrictedGuildStore = new GeoRestrictedGuildStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/GeoRestrictedGuildStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default geoRestrictedGuildStore;