summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bot.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bot.js b/src/bot.js
index 3ec9aa1..21eadf5 100644
--- a/src/bot.js
+++ b/src/bot.js
@@ -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