idk what is wrong but there are no errors nor is it send to the channel. any help would be great
client.on('message', async message => {
const channelName = "logs";
// Create an embed.
const msglogEmbed = new EmbedBuilder()
.setTitle('Message Log')
.setDescription(`${message.author.tag}: ${message.content}`)
.setTimestamp(message.createdAt);
// Get the channel by name.
const channel = client.channels.cache.get(channelName);
// Send the embed to the specified channel.
await channel.send({ embeds: [msglogEmbed] });
// Console log the message.
console.log(`Message logged to channel ${channelName}`);
});