38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
// Module ID: 13352
|
|
// Function ID: 13353
|
|
// Name: getGeoRestrictedGuilds
|
|
// Dependencies: [589, 709, 2]
|
|
|
|
// Module 13352 (getGeoRestrictedGuilds)
|
|
import initializeDefault from "initialize" /* 589 */;
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
|
|
let closure_0 = [];
|
|
const Store = initializeDefault.Store;
|
|
class GeoRestrictedGuildStore extends Store {
|
|
}
|
|
GeoRestrictedGuildStore.prototype["getGeoRestrictedGuilds"] = function getGeoRestrictedGuilds() {
|
|
return closure_0;
|
|
};
|
|
GeoRestrictedGuildStore.displayName = "GeoRestrictedGuildStore";
|
|
const geoRestrictedGuildStore = new GeoRestrictedGuildStore(dispatcherDefault, {
|
|
CONNECTION_OPEN: function handleConnectionOpen(geoRestrictedGuilds) {
|
|
geoRestrictedGuilds = geoRestrictedGuilds.geoRestrictedGuilds;
|
|
},
|
|
GUILD_DELETE: function handleDeleteGuild(guild) {
|
|
guild = guild.guild;
|
|
if (-1 === guild.findIndex((id) => id.id === user.id)) {
|
|
return false;
|
|
} else {
|
|
guild = guild.filter((id) => id.id !== user.id);
|
|
}
|
|
},
|
|
GUILD_GEO_RESTRICTED: function handleGeoRestrictGuild(guildId) {
|
|
let found = guildId;
|
|
found = found.filter((id) => id.id !== found.guildId);
|
|
found.push({ id: guildId.guildId, name: guildId.name, icon: guildId.icon, unavailable: true, geo_restricted: true });
|
|
}
|
|
});
|
|
const result = require("set").fileFinishedImporting("stores/GeoRestrictedGuildStore.tsx");
|
|
|
|
export default geoRestrictedGuildStore;
|