diff options
Diffstat (limited to 'src/bot.js')
| -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 |
