diff --git a/index.js b/index.js index 028a8e0..a80510f 100644 --- a/index.js +++ b/index.js @@ -45,14 +45,14 @@ client.on('messageUpdate', (originalMessage, editedMessage) => { }); client.on('channelCreate', channel => { - const editEmbed = new Discord.MessageEmbed() + const channelCreateEmbed = new Discord.MessageEmbed() .setTitle("Channel Created #️⃣") .addField("Name", channel.name) .addField("Category", channel.category) .setFooter("ID: " + channel.id) .setTimestamp() .setColor('006699'); - editedMessage.guild.channels.cache.get("826876551756513314").send(editEmbed).catch(console.error); + channel.guild.channels.cache.get("826876551756513314").send(channelCreateEmbed).catch(console.error); }); client.login(process.env.BOT_TOKEN);