From 0712a1486c3f5d1727d6f561b684d5877ec319d1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 13 Apr 2021 12:09:25 -0500 Subject: [PATCH] Return if new channel is just a DM --- bot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.js b/bot.js index 1969503..2a5560d 100644 --- a/bot.js +++ b/bot.js @@ -898,6 +898,9 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { }); client.on('channelCreate', channel => { + if (channel.type === "dm") { + return; + } const channelID = channel.id; const channelType = channel.type; let channelCategory;