diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2026-06-10 21:54:08 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2026-06-10 21:54:08 +0200 |
| commit | e2b7bc8236ac90eddf4827376b95a6e4ed44715c (patch) | |
| tree | 95019995ffc6b87ddb55f3c7d8ed06cfcb116d21 /src | |
| parent | dd8897294f0c070948b34214defcb436c70005a3 (diff) | |
Log voice-related debug and raw VOICE_*_UPDATE packets
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bot.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -110,4 +110,16 @@ 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 |
