decord/source/actions/SelectedChannelActionCreators.tsx

66 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4980
// Function ID: 4981
// Dependencies: [4545, 1391, 4501, 676, 709, 1222, 4981, 9884, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 4980
import dispatcherDefault from "dispatcher" /* 709 */;
import transitionTo from "transitionTo" /* 1222 */;
import selectVoiceChannelAdditional from "selectVoiceChannelAdditional" /* 4981 */;
import disconnectRemoteAll from "disconnectRemote" /* 9884 */;
import closure_4 from "set" /* 4545 */;
import closure_5 from "ensureGuildLoaded" /* 1391 */;
import closure_6 from "_detectH265HardwareDecode" /* 4501 */;
import ME from "ME" /* 676 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
({ ME: error, PopoutWindowKeys, Routes: closure_8 } = ME);
const result = require("set").fileFinishedImporting("actions/SelectedChannelActionCreators.tsx");
2026-07-23 10:11:24 +00:00
export default {
2026-07-20 16:05:17 +00:00
selectChannel(guildId) {
guildId = guildId.guildId;
({ channelId, messageId, jumpType, source, skipMessageFetch } = guildId);
let tmp = null;
if (guildId !== closure_7) {
tmp = guildId;
}
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "CHANNEL_SELECT", guildId: tmp, channelId, messageId, jumpType, source, skipMessageFetch });
2026-07-20 16:05:17 +00:00
},
selectPrivateChannel(id) {
2026-08-24 06:08:38 +00:00
transitionTo.transitionTo(closure_8.CHANNEL(closure_7, id));
2026-07-20 16:05:17 +00:00
},
2026-07-29 08:29:29 +00:00
selectVoiceChannel(id, c1, flag2) {
let flag = c1;
if (c1 === undefined) {
2026-07-20 16:05:17 +00:00
flag = false;
}
if (flag2 === undefined) {
flag2 = false;
}
2026-07-29 08:29:29 +00:00
let obj = arg3;
if (arg3 === undefined) {
2026-07-20 16:05:17 +00:00
obj = {};
}
2026-07-29 08:29:29 +00:00
channel = channel.getChannel(id);
if (channel != null) {
2026-07-20 16:05:17 +00:00
const guildId = channel.getGuildId();
}
2026-07-29 08:29:29 +00:00
if (supported.isSupported()) {
if (null != id) {
const mediaEngine = supported.getMediaEngine();
2026-07-20 16:05:17 +00:00
mediaEngine.interact();
}
2026-08-24 06:08:38 +00:00
const obj5 = selectVoiceChannelAdditional;
2026-07-29 08:29:29 +00:00
const voiceChannelAdditional = obj5.selectVoiceChannelAdditional(id, guildId, flag, flag2, obj);
2026-07-20 16:05:17 +00:00
}
},
disconnect() {
2026-07-23 10:11:24 +00:00
remoteSessionId = remoteSessionId.getRemoteSessionId();
2026-07-20 16:05:17 +00:00
if (null != remoteSessionId) {
2026-08-24 06:08:38 +00:00
disconnectRemoteAll.remoteDisconnect(remoteSessionId);
const obj = disconnectRemoteAll;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const voiceChannel = this.selectVoiceChannel(null);
2026-07-20 16:05:17 +00:00
}
};