decord/source/modules/calls/toggleVoiceChannelChat.tsx
2026-07-24 07:16:23 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 13489
// Function ID: 103670
// Name: toggleVoiceChannelChat
// Dependencies: [1348, 4202, 4143, 4323, 2]
// Exports: toggleVoiceChannelChat
// Module 13489 (toggleVoiceChannelChat)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx");
export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) {
let tmp = open;
if (closure_3.isConnected()) {
const channelId = closure_3.getChannelId();
if (null == channelId) {
return null;
} else {
channel = channel.getChannel(channelId);
if (null != channel) {
if (channel.isGuildVoice()) {
if (null == tmp) {
tmp = !chatOpen.getChatOpen(channelId);
}
importDefault(4323).updateChatOpen(channelId, tmp);
const obj = { channelId, chatOpen: tmp };
return obj;
}
}
return null;
}
} else {
return null;
}
};