47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
// Module ID: 5925
|
|
// Function ID: 5926
|
|
// Name: GuildNSFWAgreeStore
|
|
// Dependencies: [510, 504, 5908, 584, 2]
|
|
|
|
// Module 5925 (GuildNSFWAgreeStore)
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
import Storage2 from "Storage" /* 510 */;
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
|
import shouldAgeVerifyForAgeGate from "shouldAgeVerifyForAgeGate" /* 5908 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const GuildNSFWAgreeStore_str = "GuildNSFWAgreeStore";
|
|
let c3 = {};
|
|
const Store = get_initializedDefault.Store;
|
|
class GuildNSFWAgreeStore extends Store {
|
|
initialize() {
|
|
const Storage = Storage2.Storage;
|
|
let c3 = Storage.get(GuildNSFWAgreeStore_str);
|
|
}
|
|
didAgree(arg0) {
|
|
let tmp = null != arg0;
|
|
if (tmp) {
|
|
const obj = shouldAgeVerifyForAgeGate;
|
|
const result = obj.shouldAgeVerifyForAgeGate();
|
|
let tmp5 = !result;
|
|
if (tmp5) {
|
|
tmp5 = value[arg0] || false;
|
|
}
|
|
tmp = tmp5;
|
|
}
|
|
return tmp;
|
|
}
|
|
}
|
|
const prototype = GuildNSFWAgreeStore.prototype;
|
|
GuildNSFWAgreeStore.displayName = "GuildNSFWAgreeStore";
|
|
let obj = {
|
|
GUILD_NSFW_AGREE: function handleGuildNSFWAgree(guildId) {
|
|
c3[guildId.guildId] = true;
|
|
const Storage = Storage2.Storage;
|
|
const result = Storage.set(GuildNSFWAgreeStore_str, c3);
|
|
}
|
|
};
|
|
const guildNSFWAgreeStore = new GuildNSFWAgreeStore(DispatcherDefault, obj);
|
|
let result = size.fileFinishedImporting("stores/GuildNSFWAgreeStore.tsx");
|
|
|
|
export default guildNSFWAgreeStore;
|