Browse Source

Fix null errors pt 2

master
Abheek Dhawan 4 years ago
parent
commit
87e2757dac
  1. 2
      index.js

2
index.js

@ -49,7 +49,7 @@ client.on('channelCreate', channel => {
const channelName = channel.name; const channelName = channel.name;
const channelID = channel.id; const channelID = channel.id;
let channelCategory; let channelCategory;
if (channel.parent.name) { if (channel.parent) {
channelCategory = channel.parent.name; channelCategory = channel.parent.name;
} else { } else {
channelCategory = "None"; channelCategory = "None";

Loading…
Cancel
Save