From 16333d663bbaa59c76f753a761b3f2aa21b2211e Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Wed, 10 Jun 2026 22:02:46 +0200 Subject: Log bot voice state and channel info on join attempt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/handlers/playCommand.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/handlers/playCommand.js b/src/handlers/playCommand.js index 1b10eab..365f4f6 100644 --- a/src/handlers/playCommand.js +++ b/src/handlers/playCommand.js @@ -130,7 +130,11 @@ async function createVoiceConnection(voiceChannel, interaction) { for (let attempt = 1; attempt <= maxAttempts; attempt++) { const guild = voiceChannel.guild; + const botMember = guild.members.me; + const botVoiceState = botMember?.voice; console.log(`[JOIN ATTEMPT ${attempt}] Guild: ${guildId}, Channel: ${voiceChannel.id}, Shard status: ${guild.shard?.status}, Shard id: ${guild.shardId}`); + console.log(`[BOT INFO] id: ${guild.client.user?.id}, voice channelId: ${botVoiceState?.channelId ?? 'null'}, sessionId: ${botVoiceState?.sessionId ?? 'null'}, serverDeaf: ${botVoiceState?.serverDeaf}, serverMute: ${botVoiceState?.serverMute}, selfDeaf: ${botVoiceState?.selfDeaf}, selfMute: ${botVoiceState?.selfMute}`); + console.log(`[CHANNEL INFO] name: ${voiceChannel.name}, type: ${voiceChannel.type}, userLimit: ${voiceChannel.userLimit}, full: ${voiceChannel.full}, joinable: ${voiceChannel.joinable}, members: ${voiceChannel.members?.size}, rtcRegion: ${voiceChannel.rtcRegion}`); const baseAdapterCreator = guild.voiceAdapterCreator; const adapterCreator = (methods) => { -- cgit v1.2.3