Browse Source

Return if new channel is just a DM

master
Abheek Dhawan 4 years ago
parent
commit
0712a1486c
  1. 3
      bot.js

3
bot.js

@ -898,6 +898,9 @@ client.on('messageUpdate', (originalMessage, editedMessage) => {
}); });
client.on('channelCreate', channel => { client.on('channelCreate', channel => {
if (channel.type === "dm") {
return;
}
const channelID = channel.id; const channelID = channel.id;
const channelType = channel.type; const channelType = channel.type;
let channelCategory; let channelCategory;

Loading…
Cancel
Save