33 lines
950 B
TypeScript
33 lines
950 B
TypeScript
// Metro module 16480 (f16481).
|
|
import Module589 from "../../_bundle/Module589";
|
|
import Dispatcher from "../../Dispatcher";
|
|
let c11860_0 = {};
|
|
class GuildConfigGatesStore extends Module589.Store {
|
|
static displayName = "GuildConfigGatesStore";
|
|
hasLoaded(a0) {
|
|
return c11860_0[a0] != null;
|
|
}
|
|
getGates(a0) {
|
|
let r4 = c11860_0[a0];
|
|
if (r4 == null) {
|
|
r4 = {
|
|
guildVerificationRoleEnabled: false,
|
|
applicationIdentityLinkedRolesEnabled: false
|
|
};
|
|
}
|
|
return r4;
|
|
}
|
|
}
|
|
const guildConfigGatesStore = new GuildConfigGatesStore(Dispatcher, {
|
|
GUILD_CONFIG_GATES_FETCH_SUCCESS: function handleFetchSuccess(a0) {
|
|
c11860_0[a0.guildId] = {
|
|
guildVerificationRoleEnabled: a0.guildVerificationRoleEnabled,
|
|
applicationIdentityLinkedRolesEnabled: a0.applicationIdentityLinkedRolesEnabled
|
|
};
|
|
},
|
|
LOGOUT: function handleLogout() {
|
|
c11860_0 = {};
|
|
}
|
|
});
|
|
export default guildConfigGatesStore;
|