2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 6004
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 53531
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: validateGuildId
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [6, 7, 653, 1841, 6005, 6006, 6007, 4016, 22, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 6004 (validateGuildId)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
2026-07-25 08:10:48 +00:00
|
|
|
import closure_4 from "_createForOfIteratorHelperLoose";
|
|
|
|
|
import { ME } from "ME";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-25 08:10:48 +00:00
|
|
|
function validateGuildId(guildId) {
|
|
|
|
|
let tmp = null != guildId;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp) {
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp = "null" !== guildId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp = guildId !== ME;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp = "undefined" !== guildId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp = !require(1841) /* isFavoritesGuildId */.isFavoritesGuildId(guildId);
|
|
|
|
|
const obj = require(1841) /* isFavoritesGuildId */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
2026-07-25 08:10:48 +00:00
|
|
|
let tmp2 = (() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
class GuildSubscriptions {
|
|
|
|
|
constructor(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
self = this;
|
|
|
|
|
tmp = outer1_3(this, self);
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp2 = outer1_1(outer1_2[4]);
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp2 = new tmp2((arg0, members) => self._enqueue(arg0, { members }));
|
|
|
|
|
this._members = tmp2;
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp4 = outer1_1(outer1_2[5]);
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp4 = new tmp4((arg0, channels) => self._enqueue(arg0, { channels }));
|
|
|
|
|
this._channels = tmp4;
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp6 = outer1_1(outer1_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp6 = new tmp6((arg0, thread_member_lists) => self._enqueue(arg0, { thread_member_lists }));
|
|
|
|
|
this._threadMemberLists = tmp6;
|
|
|
|
|
set = new Set();
|
|
|
|
|
this._typing = set;
|
|
|
|
|
set1 = new Set();
|
|
|
|
|
this._threads = set1;
|
|
|
|
|
set2 = new Set();
|
|
|
|
|
this._activities = set2;
|
|
|
|
|
set3 = new Set();
|
|
|
|
|
this._memberUpdates = set3;
|
|
|
|
|
set4 = new Set();
|
|
|
|
|
this._subscribed = set4;
|
|
|
|
|
this._pending = {};
|
2026-07-25 08:10:48 +00:00
|
|
|
delayedCall = new GuildSubscriptions(outer1_2[7]).DelayedCall(0, () => self.flush());
|
2026-07-20 16:05:17 +00:00
|
|
|
this._flush = delayedCall;
|
|
|
|
|
this._onChange = arg0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj = {
|
|
|
|
|
key: "_enqueue",
|
|
|
|
|
value(arg0, arg1) {
|
|
|
|
|
const merged = Object.assign(this._pending[arg0]);
|
|
|
|
|
const merged1 = Object.assign(arg1);
|
|
|
|
|
this._pending[arg0] = {};
|
|
|
|
|
const _flush = this._flush;
|
|
|
|
|
_flush.delay();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const items = [obj, , , , , , , , , , , , , , , , , , ];
|
|
|
|
|
obj = {
|
|
|
|
|
key: "reset",
|
|
|
|
|
value() {
|
|
|
|
|
const _subscribed = this._subscribed;
|
|
|
|
|
_subscribed.clear();
|
|
|
|
|
this._pending = {};
|
|
|
|
|
const _members = this._members;
|
|
|
|
|
_members.reset();
|
|
|
|
|
const _memberUpdates = this._memberUpdates;
|
|
|
|
|
_memberUpdates.clear();
|
|
|
|
|
const _channels = this._channels;
|
|
|
|
|
_channels.reset();
|
|
|
|
|
const _threadMemberLists = this._threadMemberLists;
|
|
|
|
|
_threadMemberLists.reset();
|
|
|
|
|
const _typing = this._typing;
|
|
|
|
|
_typing.clear();
|
|
|
|
|
const _threads = this._threads;
|
|
|
|
|
_threads.clear();
|
|
|
|
|
const _activities = this._activities;
|
|
|
|
|
_activities.clear();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[1] = obj;
|
|
|
|
|
obj = {
|
|
|
|
|
key: "get",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
let _activities;
|
|
|
|
|
let _channels;
|
|
|
|
|
let _memberUpdates;
|
|
|
|
|
let _members;
|
|
|
|
|
let _threadMemberLists;
|
|
|
|
|
let _threads;
|
|
|
|
|
let _typing;
|
|
|
|
|
({ _typing, _threads, _activities, _members, _memberUpdates, _channels, _threadMemberLists } = this);
|
|
|
|
|
return { typing: _typing.has(arg0), threads: _threads.has(arg0), activities: _activities.has(arg0), members: _members.get(arg0), member_updates: _memberUpdates.has(arg0), channels: _channels.get(arg0), thread_member_lists: _threadMemberLists.get(arg0) };
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[2] = obj;
|
|
|
|
|
items[3] = {
|
|
|
|
|
key: "getSubscribedThreadIds",
|
|
|
|
|
value() {
|
|
|
|
|
const _threadMemberLists = this._threadMemberLists;
|
|
|
|
|
return _threadMemberLists.getSubscribedThreadIds();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[4] = {
|
|
|
|
|
key: "isSubscribedToThreads",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const _threads = this._threads;
|
|
|
|
|
return _threads.has(arg0);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[5] = {
|
|
|
|
|
key: "isSubscribedToAnyMember",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const _members = this._members;
|
|
|
|
|
const result = _members.isSubscribedToAnyMember(arg0);
|
|
|
|
|
return null != result && result;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[6] = {
|
|
|
|
|
key: "isSubscribedToMemberUpdates",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const member_updates = this.get(arg0).member_updates;
|
|
|
|
|
return null != member_updates && member_updates;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[7] = {
|
|
|
|
|
key: "forEach",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const _subscribed = this._subscribed;
|
|
|
|
|
const item = _subscribed.forEach(arg0);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[8] = {
|
|
|
|
|
key: "clearWithoutFlushing",
|
|
|
|
|
value(arg0, arg1) {
|
|
|
|
|
const self = this;
|
|
|
|
|
let hasItem = !arg1;
|
|
|
|
|
if (hasItem) {
|
|
|
|
|
const _threads = self._threads;
|
|
|
|
|
hasItem = _threads.has(arg0);
|
|
|
|
|
}
|
|
|
|
|
if (!hasItem) {
|
|
|
|
|
const _subscribed = self._subscribed;
|
|
|
|
|
_subscribed.delete(arg0);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
delete tmp2[tmp];
|
2026-07-20 16:05:17 +00:00
|
|
|
const _members = self._members;
|
|
|
|
|
_members.clear(arg0);
|
|
|
|
|
const _channels = self._channels;
|
|
|
|
|
_channels.clear(arg0);
|
|
|
|
|
const _threadMemberLists = self._threadMemberLists;
|
|
|
|
|
_threadMemberLists.clear(arg0);
|
|
|
|
|
const _typing = self._typing;
|
|
|
|
|
_typing.delete(arg0);
|
|
|
|
|
const _memberUpdates = self._memberUpdates;
|
|
|
|
|
_memberUpdates.delete(arg0);
|
|
|
|
|
if (arg1) {
|
|
|
|
|
const _threads2 = self._threads;
|
|
|
|
|
_threads2.delete(arg0);
|
|
|
|
|
}
|
|
|
|
|
const _activities = self._activities;
|
|
|
|
|
_activities.delete(arg0);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[9] = {
|
|
|
|
|
key: "flush",
|
|
|
|
|
value() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const self = this;
|
2026-07-25 08:10:48 +00:00
|
|
|
const item = outer1_1(outer1_2[8]).forEach(this._pending, (arg0, arg1) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _subscribed = self._subscribed;
|
|
|
|
|
_subscribed.add(arg1);
|
|
|
|
|
});
|
|
|
|
|
this._onChange(this._pending);
|
|
|
|
|
this._pending = {};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[10] = {
|
|
|
|
|
key: "subscribeUser",
|
|
|
|
|
value(arg0, arg1) {
|
2026-07-25 08:10:48 +00:00
|
|
|
if (outer1_6(arg0)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const self = this;
|
|
|
|
|
const _members = this._members;
|
|
|
|
|
const subscription = _members.subscribe(arg0, arg1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[11] = {
|
|
|
|
|
key: "unsubscribeUser",
|
|
|
|
|
value(arg0, arg1) {
|
2026-07-25 08:10:48 +00:00
|
|
|
if (outer1_6(arg0)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const self = this;
|
|
|
|
|
const _members = this._members;
|
|
|
|
|
_members.unsubscribe(arg0, arg1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[12] = {
|
|
|
|
|
key: "subscribeChannel",
|
|
|
|
|
value(arg0, arg1, arg2) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const tmp = outer1_6(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let subscription = tmp;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const self = this;
|
|
|
|
|
const _channels = this._channels;
|
|
|
|
|
subscription = _channels.subscribe(arg0, arg1, arg2);
|
|
|
|
|
}
|
|
|
|
|
return subscription;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[13] = {
|
|
|
|
|
key: "subscribeToMemberUpdates",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const self = this;
|
2026-07-25 08:10:48 +00:00
|
|
|
if (outer1_6(arg0)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj = { member_updates: true };
|
|
|
|
|
self._enqueue(arg0, obj);
|
|
|
|
|
const _memberUpdates = self._memberUpdates;
|
|
|
|
|
_memberUpdates.add(arg0);
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[14] = {
|
|
|
|
|
key: "unsubscribeFromMemberUpdates",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
const self = this;
|
2026-07-25 08:10:48 +00:00
|
|
|
if (outer1_6(arg0)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj = { member_updates: false };
|
|
|
|
|
self._enqueue(arg0, obj);
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[15] = {
|
|
|
|
|
key: "subscribeThreadMemberList",
|
|
|
|
|
value(arg0, arg1, arg2) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const tmp = outer1_6(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let subscription = tmp;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const self = this;
|
|
|
|
|
const _threadMemberLists = this._threadMemberLists;
|
|
|
|
|
subscription = _threadMemberLists.subscribe(arg0, arg1, arg2);
|
|
|
|
|
}
|
|
|
|
|
return subscription;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[16] = {
|
|
|
|
|
key: "unsubscribeThreadMemberList",
|
|
|
|
|
value(arg0, arg1) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const tmp = outer1_6(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let unsubscribeResult = tmp;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const self = this;
|
|
|
|
|
const _threadMemberLists = this._threadMemberLists;
|
|
|
|
|
unsubscribeResult = _threadMemberLists.unsubscribe(arg0, arg1);
|
|
|
|
|
}
|
|
|
|
|
return unsubscribeResult;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[17] = {
|
|
|
|
|
key: "subscribeToGuild",
|
|
|
|
|
value(arg0) {
|
|
|
|
|
this._subscribeToFeature(arg0, this._typing, { typing: true });
|
|
|
|
|
this._subscribeToFeature(arg0, this._activities, { activities: true });
|
|
|
|
|
this._subscribeToFeature(arg0, this._threads, { threads: true });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
items[18] = {
|
|
|
|
|
key: "_subscribeToFeature",
|
|
|
|
|
value(arg0, has) {
|
|
|
|
|
const self = this;
|
2026-07-25 08:10:48 +00:00
|
|
|
if (outer1_6(arg0)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!has.has(arg0)) {
|
|
|
|
|
has.add(arg0);
|
|
|
|
|
self._enqueue(arg0, arg2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return callback(GuildSubscriptions, items);
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
let result = require("ME").fileFinishedImporting("lib/guild/GuildSubscriptions.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
export default tmp2;
|
2026-07-23 10:11:24 +00:00
|
|
|
export const MINIMUM_RANGE = require("serializeChannelRanges").MINIMUM_RANGE;
|
|
|
|
|
export const DEFAULT_RANGES = require("serializeChannelRanges").DEFAULT_RANGES;
|