I am trying to make an embed with only 2 columns. Whenever I delete the inline value it drops test3 field like I want. Then I keep inline: true on test4 field and it drops to another row. I tried making both test3 and test4 inline values false but the problem still exists. How can I correct this?
Update: After playing with it some more I found that when I make a 5th field it splits the column again. Is there anyway I can hide test3 but keep the field?
My embed looks like this
My Code:
command(client, 'test' , (message) => {
const embed = new Discord.MessageEmbed()
.setTitle('Test')
.setColor('#C69B6D')
.addFields(
{
name: 'test1' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test2' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test3' ,
value: "```TESTING```",
},
{
name: 'test4' ,
value: "```TESTING```",
inline: true,
},
)
message.channel.send(embed).then(msg => {})
})
Updated Embed:
My Updated Code:
command(client, 'test' , (message) => {
const embed = new Discord.MessageEmbed()
.setTitle('Test')
.setColor('#C69B6D')
.addFields(
{
name: 'test1' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test2' ,
value: "```TESTING```",
inline: true,
},
{
},
{
name: 'test4' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test5' ,
value: "```TESTING```",
inline: true,
},
)
message.channel.send(embed).then(msg => {})
})
I am trying to make an embed with only 2 columns. Whenever I delete the inline value it drops test3 field like I want. Then I keep inline: true on test4 field and it drops to another row. I tried making both test3 and test4 inline values false but the problem still exists. How can I correct this?
Update: After playing with it some more I found that when I make a 5th field it splits the column again. Is there anyway I can hide test3 but keep the field?
My embed looks like this
My Code:
command(client, 'test' , (message) => {
const embed = new Discord.MessageEmbed()
.setTitle('Test')
.setColor('#C69B6D')
.addFields(
{
name: 'test1' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test2' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test3' ,
value: "```TESTING```",
},
{
name: 'test4' ,
value: "```TESTING```",
inline: true,
},
)
message.channel.send(embed).then(msg => {})
})
Updated Embed:
My Updated Code:
command(client, 'test' , (message) => {
const embed = new Discord.MessageEmbed()
.setTitle('Test')
.setColor('#C69B6D')
.addFields(
{
name: 'test1' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test2' ,
value: "```TESTING```",
inline: true,
},
{
},
{
name: 'test4' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test5' ,
value: "```TESTING```",
inline: true,
},
)
message.channel.send(embed).then(msg => {})
})
Share
Improve this question
edited Mar 5, 2021 at 2:37
joey dibbs
asked Mar 5, 2021 at 1:05
joey dibbsjoey dibbs
1311 gold badge2 silver badges9 bronze badges
1
- Have you tried a generator for your needs? Many available to do the boring work for you. Embeds work tricky too, if you create one and try to modify it with different columns/etc it will likely fail. You may need to implement a trick like HelpBoxEmbed, UserEmbed, SearchEmbed. – BGPHiJACK Commented Mar 5, 2021 at 1:38
2 Answers
Reset to default 12You can use .addField('\u200b', '\u200b')
to add an empty field
See the discord.js guide for more information
Use '\t' escaped symbol instead of '\u200b' or '\b':
.addFields(
{
name: 'test1' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test2' ,
value: "```TESTING```",
inline: true,
},
{
name: "\t",
value: "\t"
},
{
name: 'test4' ,
value: "```TESTING```",
inline: true,
},
{
name: 'test5' ,
value: "```TESTING```",
inline: true,
},
)
Discord embed example