#how can i make my inline fields look like the image?

11 messages · Page 1 of 1 (latest)

flint thunder
#

(title)
here's what i've tried:

const songEmbed = new EmbedBuilder()
    .setColor(0x1ed760)
    .setTitle(obj["name"])
    .setURL(`https://www.youtube.com/watch?v=${data[0].youtubeId}`)
    .setThumbnail(obj["img"])
    .addFields(
        { name: "artist", value: obj["artist"], inline: true },
        { name: "album", value: obj["album"], inline: true },
        { name: "number", value: `${index + 1}`, inline: true },
        { name: "status", value: "complete", inline: true }
    )
    .setFooter({ text: "lucspyt" });
// current code, works, but looks like this: https://cdn.discordapp.com/attachments/1104872276295422092/1115285544503611442/image.png
const songEmbed = new EmbedBuilder()
    .setColor(0x1ed760)
    .setTitle(obj["name"])
    .setURL(`https://www.youtube.com/watch?v=${data[0].youtubeId}`)
    .setThumbnail(obj["img"])
    .addFields(
        { name: "artist", value: obj["artist"], inline: true },
        { name: "album", value: obj["album"], inline: true },
        {},
        { name: "number", value: `${index + 1}`, inline: true },
        { name: "status", value: "complete", inline: true }
    )
    .setFooter({ text: "lucspyt" });
// doesn't work, throws an error
smoky ravineBOT
#

• 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.

woeful dome
#

Most likely the third field is a zero-width space

flint thunder
#

good idea, let me try

flint thunder
#

sort of works, doesnt look the best on mobile too
ty anyways! ill stick to this alternative for now :)

woeful dome
#

I assume that's Android?

flint thunder
#

it is lol

woeful dome
#

Android doesn't show this nicely but other mobile devices are fine

#

It looks like you're missing a sixth field for ZWS though

flint thunder
#

oh yeah, i think that'd be good too

#

let me try\