decord/alpha/source/stores/GuildNSFWAgreeStore.tsx

48 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 5925
// Function ID: 5926
// Name: GuildNSFWAgreeStore
2026-10-10 08:08:14 +00:00
// Dependencies: [510, 504, 5908, 584, 2]
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 5925 (GuildNSFWAgreeStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import Storage2 from "Storage" /* 510 */;
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-10 08:08:14 +00:00
import shouldAgeVerifyForAgeGate from "shouldAgeVerifyForAgeGate" /* 5908 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const GuildNSFWAgreeStore_str = "GuildNSFWAgreeStore";
let c3 = {};
2026-10-03 08:58:59 +00:00
const Store = get_initializedDefault.Store;
2026-07-29 08:29:29 +00:00
class GuildNSFWAgreeStore extends Store {
2026-10-03 08:58:59 +00:00
initialize() {
const Storage = Storage2.Storage;
let c3 = Storage.get(GuildNSFWAgreeStore_str);
}
didAgree(arg0) {
let tmp = null != arg0;
if (tmp) {
2026-10-08 09:57:35 +00:00
const obj = shouldAgeVerifyForAgeGate;
2026-10-03 08:58:59 +00:00
const result = obj.shouldAgeVerifyForAgeGate();
let tmp5 = !result;
if (tmp5) {
tmp5 = value[arg0] || false;
}
tmp = tmp5;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
return tmp;
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
}
const prototype = GuildNSFWAgreeStore.prototype;
2026-07-29 08:29:29 +00:00
GuildNSFWAgreeStore.displayName = "GuildNSFWAgreeStore";
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
GUILD_NSFW_AGREE: function handleGuildNSFWAgree(guildId) {
2026-10-03 08:58:59 +00:00
c3[guildId.guildId] = true;
2026-08-24 06:08:38 +00:00
const Storage = Storage2.Storage;
2026-10-03 08:58:59 +00:00
const result = Storage.set(GuildNSFWAgreeStore_str, c3);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
};
const guildNSFWAgreeStore = new GuildNSFWAgreeStore(DispatcherDefault, obj);
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;