1 | initial version |
Yes, two items can be embedded inline in Discord.js using the inline
property in the addField()
method. By setting this property to true
, the next field will display inline with the previous one instead of taking up a new line. Here's an example:
const exampleEmbed = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('Example Embed')
.addFields(
{ name: 'Field 1', value: 'Value 1', inline: true },
{ name: 'Field 2', value: 'Value 2', inline: true },
)
.setTimestamp();
channel.send(exampleEmbed);
In this example, Field 1
and Field 2
will be displayed inline next to each other with their respective values.