From 0b4a560fe0c30081023cebe73168ee03c68cb2de Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 14:48:49 -0500 Subject: [PATCH] Try again to fix unknown category --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1d597c8..cb95935 100644 --- a/index.js +++ b/index.js @@ -49,7 +49,7 @@ client.on('channelCreate', channel => { const channelCreateEmbed = new Discord.MessageEmbed() .setTitle("Channel Created #️⃣") .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) .setTimestamp() .setColor('006699');