decord/source/stores/GuildNSFWAgreeStore.tsx

52 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4620
// Function ID: 4621
2026-07-29 08:29:29 +00:00
// Name: initialize
2026-08-25 06:04:03 +00:00
// Dependencies: [595, 589, 4619, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 4620 (initialize)
2026-08-24 06:08:38 +00:00
import initializeDefault from "initialize" /* 589 */;
import Storage2 from "Storage" /* 595 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import shouldShowAgeGateForVoiceChannel from "shouldShowAgeGateForVoiceChannel" /* 4619 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
const GuildNSFWAgreeStore = "GuildNSFWAgreeStore";
let closure_3 = {};
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;
2026-07-29 08:29:29 +00:00
let value = Storage.get(GuildNSFWAgreeStore);
if (value == null) {
value = closure_3;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
closure_3 = value;
};
prototype["didAgree"] = function didAgree(arg0) {
let tmp = null != arg0;
if (tmp) {
2026-08-24 06:08:38 +00:00
const result = shouldShowAgeGateForVoiceChannel.shouldAgeVerifyForAgeGate();
2026-07-29 08:29:29 +00:00
let tmp5 = !result;
if (!result) {
tmp5 = table[arg0] || false;
const tmp7 = table[arg0] || false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp = tmp5;
2026-08-24 06:08:38 +00:00
const obj = shouldShowAgeGateForVoiceChannel;
2026-07-29 08:29:29 +00:00
}
return tmp;
};
GuildNSFWAgreeStore.displayName = "GuildNSFWAgreeStore";
2026-08-24 06:08:38 +00:00
const guildNSFWAgreeStore = new GuildNSFWAgreeStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
GUILD_NSFW_AGREE: function handleGuildNSFWAgree(guildId) {
2026-07-29 08:29:29 +00:00
closure_3[guildId.guildId] = true;
2026-08-24 06:08:38 +00:00
const Storage = Storage2.Storage;
2026-07-29 08:29:29 +00:00
const result = Storage.set(GuildNSFWAgreeStore, closure_3);
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("stores/GuildNSFWAgreeStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default guildNSFWAgreeStore;