Long Blank Space in Embeds

I have my embed and for some reasons it has a lot of strange blank space, its not happened before with random space? Here is the code I'm using
client.on('guildMemberAdd', (member) => {

const incoming_messages = [`It appears ${member} has hopped \n in the server, lets all welcome them!`, `print("${member} has joined")`, `${member}\.inServer = true`]

let welcome = Math.floor(Math.random() * incoming_messages.length)

const E = new MessageEmbed()
.setTitle("**New Member**")
.setDescription(`${incoming_messages[welcome]}`)
.setColor("#A020F0")
.setTimestamp()

console.log("MEMBER JOINED")
member.roles.add([`951942010309345311`])
client.channels.cache.get("952666424436994078").send({ embeds: [E] });
});
client.on('guildMemberAdd', (member) => {

const incoming_messages = [`It appears ${member} has hopped \n in the server, lets all welcome them!`, `print("${member} has joined")`, `${member}\.inServer = true`]

let welcome = Math.floor(Math.random() * incoming_messages.length)

const E = new MessageEmbed()
.setTitle("**New Member**")
.setDescription(`${incoming_messages[welcome]}`)
.setColor("#A020F0")
.setTimestamp()

console.log("MEMBER JOINED")
member.roles.add([`951942010309345311`])
client.channels.cache.get("952666424436994078").send({ embeds: [E] });
});
3 Replies
d.js docs
d.js docs2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
duck
duck2y ago
discord recently standardized a wider width for embeds as to why the line break is specifically after hopped it's because that's what you have in your code with \n
MrEthλn
MrEthλn2y ago
Okay thanks, I didn't know they did that- and for the \n was one of my attempts to work out why.