|
@ -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"; |
|
|