decord/source/stores/GuildNSFWAgreeStore.tsx

48 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 4404
// Function ID: 4405
// Name: initialize
// Dependencies: [595, 589, 4403, 709, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 4404 (initialize)
import { Store } from "initialize";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const GuildNSFWAgreeStore = "GuildNSFWAgreeStore";
let closure_3 = {};
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() {
const Storage = require(595) /* Storage */.Storage;
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) {
const result = require(4403) /* shouldShowAgeGateForVoiceChannel */.shouldAgeVerifyForAgeGate();
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;
const obj = require(4403) /* shouldShowAgeGateForVoiceChannel */;
}
return tmp;
};
GuildNSFWAgreeStore.displayName = "GuildNSFWAgreeStore";
const guildNSFWAgreeStore = new GuildNSFWAgreeStore(require("dispatcher"), {
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;
const Storage = require(595) /* Storage */.Storage;
const result = Storage.set(GuildNSFWAgreeStore, closure_3);
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
let result = require("shouldShowAgeGateForVoiceChannel").fileFinishedImporting("stores/GuildNSFWAgreeStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default guildNSFWAgreeStore;