From 3088fbfaa419df909908e00d2c9af9dec62d6206 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Wed, 10 Jun 2026 22:06:29 +0200 Subject: Reject /play early when voice channel is full Discord silently drops the bot's op 4 join when the channel user limit is reached and the bot lacks Move Members, causing a 30s AbortError timeout. Check voiceChannel.full upfront and return a clear error to the user. Also revert the voice-join diagnostic logging added while investigating. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/utils/helpers.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils') diff --git a/src/utils/helpers.js b/src/utils/helpers.js index 0362528..b407fb0 100644 --- a/src/utils/helpers.js +++ b/src/utils/helpers.js @@ -37,6 +37,11 @@ function requireVoiceChannel(interaction) { return null; } + if (voiceChannel.full && !perms.has(PermissionsBitField.Flags.MoveMembers)) { + interaction.editReply(`That voice channel is full (limit: ${voiceChannel.userLimit}). Raise the user limit or give me Move Members permission.`); + return null; + } + return voiceChannel; } -- cgit v1.2.3