summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2026-06-10 22:02:46 +0200
committerAleksa Vuckovic <aleksa@vuckovic.cc>2026-06-10 22:02:46 +0200
commit16333d663bbaa59c76f753a761b3f2aa21b2211e (patch)
tree5816cf1e4c7735047427f167b024d85b21309df1
parent7728d4df36a5f1cd70dc7fbd85c9f8f75931063f (diff)
Log bot voice state and channel info on join attempt
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
-rw-r--r--src/handlers/playCommand.js4
1 files changed, 4 insertions, 0 deletions
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) => {