decord/source/modules/calls/toggleVoiceChannelChat.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13501
// Function ID: 103802
2026-07-20 16:05:17 +00:00
// Name: toggleVoiceChannelChat
2026-07-25 08:10:48 +00:00
// Dependencies: [1348, 4203, 4144, 4324, 2]
2026-07-20 16:05:17 +00:00
// Exports: toggleVoiceChannelChat
2026-07-27 11:26:19 +00:00
// Module 13501 (toggleVoiceChannelChat)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx");
2026-07-20 16:05:17 +00:00
export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) {
let tmp = open;
if (closure_3.isConnected()) {
const channelId = closure_3.getChannelId();
if (null == channelId) {
return null;
} else {
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channelId);
2026-07-20 16:05:17 +00:00
if (null != channel) {
if (channel.isGuildVoice()) {
if (null == tmp) {
tmp = !chatOpen.getChatOpen(channelId);
}
2026-07-25 08:10:48 +00:00
importDefault(4324).updateChatOpen(channelId, tmp);
2026-07-20 16:05:17 +00:00
const obj = { channelId, chatOpen: tmp };
return obj;
}
}
return null;
}
} else {
return null;
}
};