decord/source/stores/GuildNSFWAgreeStore.tsx

48 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 4817
// Function ID: 4818
// Name: GuildNSFWAgreeStore
// Dependencies: [510, 504, 4816, 573, 2]
2026-07-20 16:05:17 +00:00
// Module 4817 (GuildNSFWAgreeStore)
import initializeDefault from "initialize" /* 504 */;
import Storage2 from "Storage" /* 510 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import AgeGateUtils from "AgeGateUtils" /* 4816 */;
2026-07-23 10:11:24 +00:00
require = fn;
2026-07-29 08:29:29 +00:00
const GuildNSFWAgreeStore = "GuildNSFWAgreeStore";
let c3 = {};
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class GuildNSFWAgreeStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = GuildNSFWAgreeStore.prototype;
prototype["initialize"] = function initialize() {
2026-08-24 06:08:38 +00:00
const Storage = Storage2.Storage;
value = Storage.get(GuildNSFWAgreeStore);
2026-07-29 08:29:29 +00:00
};
prototype["didAgree"] = function didAgree(arg0) {
let tmp = null != arg0;
if (tmp) {
const result = AgeGateUtils.shouldAgeVerifyForAgeGate();
2026-07-29 08:29:29 +00:00
let tmp5 = !result;
if (!result) {
tmp5 = value[arg0] || false;
const tmp7 = value[arg0] || false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp = tmp5;
}
return tmp;
};
GuildNSFWAgreeStore.displayName = "GuildNSFWAgreeStore";
const guildNSFWAgreeStore = new GuildNSFWAgreeStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
GUILD_NSFW_AGREE: function handleGuildNSFWAgree(guildId) {
value[guildId.guildId] = true;
2026-08-24 06:08:38 +00:00
const Storage = Storage2.Storage;
const result = Storage.set(GuildNSFWAgreeStore, value);
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
let result = size.fileFinishedImporting("stores/GuildNSFWAgreeStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default guildNSFWAgreeStore;