decord/source/modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

38 lines
1.4 KiB
TypeScript

// Module ID: 12934
// Function ID: 12935
// Name: shouldShowVoiceChannelChangeConfirmation
// Dependencies: [4577, 1185, 502, 1979, 4579, 2]
// Exports: shouldShowVoiceChannelChangeConfirmation
// Module 12934 (shouldShowVoiceChannelChangeConfirmation)
import closure_0 from "set" /* 4577 */;
import closure_1 from "CHANNEL_SIDEBAR_WIDTH" /* 1185 */;
import closure_2 from "fetchFingerprint" /* 502 */;
import closure_3 from "createGuildRecordFromRust" /* 1979 */;
import closure_4 from "updateVoiceState" /* 4579 */;
const result = require("set").fileFinishedImporting("modules/channel/shouldShowVoiceChannelChangeConfirmation.tsx");
export const shouldShowVoiceChannelChangeConfirmation = function shouldShowVoiceChannelChangeConfirmation(id) {
if (obj.disableVoiceChannelChangeAlert) {
return false;
} else {
remoteSessionId = remoteSessionId.getRemoteSessionId();
if (null != voiceStateForSession.getVoiceStateForSession(id.getId(), remoteSessionId)) {
return false;
} else if (obj.isCurrentClientInVoiceChannel()) {
if (obj.isInChannel(id.id)) {
return false;
} else {
guild = guild.getGuild(id.getGuildId());
let afkChannelId;
if (guild != null) {
afkChannelId = guild.afkChannelId;
}
return null == afkChannelId || !obj.isInChannel(guild.afkChannelId);
}
} else {
return false;
}
}
};