All you have to do is change message.channel.send(embed) to message.channel.send({ embeds: [embed] }) since when you use message.channel.send(embed), Discord thinks that the variable embed must be a string and tries to send it but it realises that it isn't and therefore the error happens.