decord/source/modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

41 lines
1.5 KiB
TypeScript

// Module ID: 16221
// Function ID: 16222
// Name: initialize
// Dependencies: [504, 573, 2]
// Module 16221 (initialize)
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
let closure_0 = {};
const PersistedStore = initializeDefault.PersistedStore;
class GuildBoostingProgressBarPersistedStore extends PersistedStore {
}
const prototype = GuildBoostingProgressBarPersistedStore.prototype;
prototype["initialize"] = function initialize(arg0) {
if (null != arg0) {
closure_0 = arg0;
}
};
prototype["getState"] = function getState() {
return closure_0;
};
prototype["getCountForGuild"] = function getCountForGuild(guildId) {
return table[guildId];
};
GuildBoostingProgressBarPersistedStore.displayName = "GuildBoostingProgressBarPersistedStore";
GuildBoostingProgressBarPersistedStore.persistKey = "PremiumGuildProgressBarPersistedStore";
const guildBoostingProgressBarPersistedStore = new GuildBoostingProgressBarPersistedStore(dispatcherDefault, {
APPLIED_GUILD_BOOST_COUNT_UPDATE: function handlePremiumCountUpdate(arg0) {
const obj = {};
({ guildId, premiumCount } = arg0);
const merged = Object.assign(obj);
obj[guildId] = premiumCount;
},
APPLIED_GUILD_BOOST_COUNT_RESET: function handlePremiumCountReset() {
closure_0 = {};
}
});
const result = require("set").fileFinishedImporting("modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx");
export default guildBoostingProgressBarPersistedStore;