Discord Embed inline field gets out of line

This happen when I expect it all to stay in-line. Code snippet:
.addFields(
{
name: 'Item Name',
value: _.join(_(result.data.items).map(item => `${item.name}\n`).value(), ''),
inline: true
},
{
name: 'Quantity',
value: _.join(_(result.data.items).map(item => `${item.quantity}\n`).value(), ''),
inline: true
},
{
name: 'Price',
value:_.join( _(result.data.items).map(item => `${item.price.toLocaleString()}\n`).value(), ''),
inline: true
},
{
name: 'Sold',
value: _.join(_(result.data.items).map(item => `${item.sold ? 'yes' : 'no'}\n`).value(), ''),
inline: true
},
)
.addFields(
{
name: 'Item Name',
value: _.join(_(result.data.items).map(item => `${item.name}\n`).value(), ''),
inline: true
},
{
name: 'Quantity',
value: _.join(_(result.data.items).map(item => `${item.quantity}\n`).value(), ''),
inline: true
},
{
name: 'Price',
value:_.join( _(result.data.items).map(item => `${item.price.toLocaleString()}\n`).value(), ''),
inline: true
},
{
name: 'Sold',
value: _.join(_(result.data.items).map(item => `${item.sold ? 'yes' : 'no'}\n`).value(), ''),
inline: true
},
)
3 Replies
d.js toolkit
d.js toolkit12mo 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.
treble/luna
treble/luna12mo ago
iirc you can have a max of 3 inline fields next to eachother
royc
royc12mo ago
Ahh...I see, cause when I googled it said that it widens based density. Sad they're not letting us widen it. Thanks!