Browse Source

Try again to fix unknown category

master
Abheek Dhawan 4 years ago
parent
commit
0b4a560fe0
  1. 2
      index.js

2
index.js

@ -49,7 +49,7 @@ client.on('channelCreate', channel => {
const channelCreateEmbed = new Discord.MessageEmbed() const channelCreateEmbed = new Discord.MessageEmbed()
.setTitle("Channel Created #️⃣") .setTitle("Channel Created #️⃣")
.addField("Name", channel.name) .addField("Name", channel.name)
.addField("Category", channel.parent.name) .addField("Category", () => { if(channel.parent.name) { return channel.parent.name} else { return "None" }})
.setFooter("ID: " + channel.id) .setFooter("ID: " + channel.id)
.setTimestamp() .setTimestamp()
.setColor('006699'); .setColor('006699');

Loading…
Cancel
Save