decord/source/modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx
2026-07-25 08:10:48 +00:00

42 lines
1.5 KiB
TypeScript

// Module ID: 12354
// Function ID: 96097
// Name: shouldShowVoiceChannelChangeConfirmation
// Dependencies: [4145, 1280, 1194, 1838, 4147, 2]
// Exports: shouldShowVoiceChannelChangeConfirmation
// Module 12354 (shouldShowVoiceChannelChangeConfirmation)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_1 from "_isNativeReflectConstruct";
import closure_2 from "_isNativeReflectConstruct";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import closure_4 from "_isNativeReflectConstruct";
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx");
export const shouldShowVoiceChannelChangeConfirmation = function shouldShowVoiceChannelChangeConfirmation(id) {
if (obj.disableVoiceChannelChangeAlert) {
return false;
} else {
remoteSessionId = remoteSessionId.getRemoteSessionId();
if (null != closure_4.getVoiceStateForSession(id.getId(), remoteSessionId)) {
return false;
} else if (closure_4.isCurrentClientInVoiceChannel()) {
if (closure_4.isInChannel(id.id)) {
return false;
} else {
guild = guild.getGuild(id.getGuildId());
let afkChannelId;
if (null != guild) {
afkChannelId = guild.afkChannelId;
}
let tmp10 = null == afkChannelId;
if (!tmp10) {
tmp10 = !closure_4.isInChannel(guild.afkChannelId);
}
return tmp10;
}
} else {
return false;
}
}
};