decord/source/stores/CollapsedVoiceChannelStore.tsx

63 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7133
// Function ID: 7134
2026-07-29 08:29:29 +00:00
// Name: handleConnectionOpen
2026-08-11 06:20:06 +00:00
// Dependencies: [1391, 11, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 7133 (handleConnectionOpen)
2026-08-24 06:08:38 +00:00
import DISCORD_EPOCHDefault from "DISCORD_EPOCH" /* 11 */;
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import closure_2 from "ensureGuildLoaded" /* 1391 */;
2026-07-20 16:05:17 +00:00
function handleConnectionOpen() {
2026-08-24 06:08:38 +00:00
obj = DISCORD_EPOCHDefault;
2026-07-20 16:05:17 +00:00
const keys = obj.keys(obj);
2026-07-29 08:29:29 +00:00
const item = keys.forEach((arg0) => {
if (null == channel.getChannel(arg0)) {
2026-07-23 10:11:24 +00:00
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
}
});
}
let obj = {};
2026-08-24 06:08:38 +00:00
const PersistedStore = initializeDefault.PersistedStore;
2026-07-29 08:29:29 +00:00
class CollapsedVoiceChannelStore extends PersistedStore {
}
const prototype = CollapsedVoiceChannelStore.prototype;
prototype["initialize"] = function initialize(arg0) {
2026-08-24 06:08:38 +00:00
let tmp = arg0;
this.waitFor(closure_2);
if (arg0 == null) {
tmp = obj;
}
closure_4 = tmp;
2026-07-29 08:29:29 +00:00
};
prototype["getState"] = function getState() {
return obj;
};
prototype["getCollapsed"] = function getCollapsed() {
return obj;
};
prototype["isCollapsed"] = function isCollapsed(arg0) {
return obj[arg0] || false;
};
CollapsedVoiceChannelStore.displayName = "CollapsedVoiceChannelStore";
CollapsedVoiceChannelStore.persistKey = "collapsedChannels";
2026-07-20 16:05:17 +00:00
obj = {
CONNECTION_OPEN: handleConnectionOpen,
OVERLAY_INITIALIZE: handleConnectionOpen,
CHANNEL_COLLAPSE: function handleChannelCollapse(channelId) {
channelId = channelId.channelId;
if (obj[channelId]) {
2026-07-23 10:11:24 +00:00
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp3[channelId] = true;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(obj);
}
};
2026-08-24 06:08:38 +00:00
const collapsedVoiceChannelStore = new CollapsedVoiceChannelStore(dispatcherDefault, obj);
const result = require("set").fileFinishedImporting("stores/CollapsedVoiceChannelStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default collapsedVoiceChannelStore;