decord/source/modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx

43 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 12354
// Function ID: 96097
2026-07-20 16:05:17 +00:00
// Name: shouldShowVoiceChannelChangeConfirmation
2026-07-25 08:10:48 +00:00
// Dependencies: [4145, 1280, 1194, 1838, 4147, 2]
2026-07-20 16:05:17 +00:00
// Exports: shouldShowVoiceChannelChangeConfirmation
2026-07-25 08:10:48 +00:00
// Module 12354 (shouldShowVoiceChannelChangeConfirmation)
2026-07-23 10:11:24 +00:00
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");
2026-07-20 16:05:17 +00:00
export const shouldShowVoiceChannelChangeConfirmation = function shouldShowVoiceChannelChangeConfirmation(id) {
if (obj.disableVoiceChannelChangeAlert) {
return false;
} else {
2026-07-23 10:11:24 +00:00
remoteSessionId = remoteSessionId.getRemoteSessionId();
2026-07-20 16:05:17 +00:00
if (null != closure_4.getVoiceStateForSession(id.getId(), remoteSessionId)) {
return false;
} else if (closure_4.isCurrentClientInVoiceChannel()) {
if (closure_4.isInChannel(id.id)) {
return false;
} else {
2026-07-23 10:11:24 +00:00
guild = guild.getGuild(id.getGuildId());
2026-07-20 16:05:17 +00:00
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;
}
}
};