diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2026-06-10 22:06:29 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2026-06-10 22:06:29 +0200 |
| commit | 3088fbfaa419df909908e00d2c9af9dec62d6206 (patch) | |
| tree | 0dfe9dc16a30bf6e1f56c04b2055d65853fb2290 /src/bot.js | |
| parent | 16333d663bbaa59c76f753a761b3f2aa21b2211e (diff) | |
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>
Diffstat (limited to 'src/bot.js')
| -rw-r--r-- | src/bot.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -110,16 +110,4 @@ client.on('warn', (info) => { console.warn(`[WARN] ${new Date().toISOString()} - ${info}`); }); -client.on('debug', (info) => { - if (info.includes('VOICE') || info.includes('Voice') || info.includes('voice')) { - console.log(`[DJS DEBUG] ${info}`); - } -}); - -client.on('raw', (packet) => { - if (packet.t === 'VOICE_STATE_UPDATE' || packet.t === 'VOICE_SERVER_UPDATE') { - console.log(`[RAW ${packet.t}]`, JSON.stringify(packet.d)); - } -}); - client.login(process.env.DISCORD_TOKEN);
\ No newline at end of file |
