summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) => {