decord/source/actions/SelectedChannelActionCreators.tsx

79 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4945
// Function ID: 42407
// Dependencies: [4145, 1348, 4178, 653, 686, 1198, 4946, 8971, 2]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 4945
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
import closure_6 from "_isNativeReflectConstruct";
import ME from "ME";
2026-07-20 16:05:17 +00:00
let PopoutWindowKeys;
2026-07-23 10:11:24 +00:00
let closure_7;
let closure_8;
const require = arg1;
({ ME: closure_7, PopoutWindowKeys, Routes: closure_8 } = ME);
const result = require("_isNativeReflectConstruct").fileFinishedImporting("actions/SelectedChannelActionCreators.tsx");
export default {
2026-07-20 16:05:17 +00:00
selectChannel(guildId) {
let channelId;
let jumpType;
let messageId;
let skipMessageFetch;
let source;
guildId = guildId.guildId;
({ channelId, messageId, jumpType, source, skipMessageFetch } = guildId);
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_SELECT" };
let tmp = null;
if (guildId !== closure_7) {
tmp = guildId;
}
obj.guildId = tmp;
obj.channelId = channelId;
obj.messageId = messageId;
obj.jumpType = jumpType;
obj.source = source;
obj.skipMessageFetch = skipMessageFetch;
obj.dispatch(obj);
},
selectPrivateChannel(id) {
2026-07-23 10:11:24 +00:00
require(1198) /* shouldNavigate */.transitionTo(closure_8.CHANNEL(closure_7, id));
2026-07-20 16:05:17 +00:00
},
2026-07-23 10:11:24 +00:00
selectVoiceChannel(channelId, outer2_1, flag2) {
let flag = outer2_1;
2026-07-20 16:05:17 +00:00
let obj = arg3;
2026-07-23 10:11:24 +00:00
if (outer2_1 === undefined) {
2026-07-20 16:05:17 +00:00
flag = false;
}
if (flag2 === undefined) {
flag2 = false;
}
if (obj === undefined) {
obj = {};
}
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channelId);
2026-07-20 16:05:17 +00:00
if (null != channel) {
const guildId = channel.getGuildId();
}
if (closure_6.isSupported()) {
if (null != channelId) {
const mediaEngine = closure_6.getMediaEngine();
mediaEngine.interact();
}
2026-07-25 08:10:48 +00:00
const obj4 = require(4946) /* selectVoiceChannelAdditional */;
2026-07-20 16:05:17 +00:00
const voiceChannelAdditional = obj4.selectVoiceChannelAdditional(channelId, guildId, flag, flag2, obj);
}
},
disconnect() {
const self = this;
2026-07-23 10:11:24 +00:00
remoteSessionId = remoteSessionId.getRemoteSessionId();
2026-07-20 16:05:17 +00:00
if (null != remoteSessionId) {
2026-07-25 08:10:48 +00:00
importAll(8971).remoteDisconnect(remoteSessionId);
const obj = importAll(8971);
2026-07-20 16:05:17 +00:00
}
const voiceChannel = self.selectVoiceChannel(null);
}
};