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 channelID = channel.id;
let channelCategory;
if (channel.parent.name) {
if (channel.parent) {
channelCategory = channel.parent.name;
} else {
channelCategory = "None";

Loading…
Cancel
Save