Skip to content

Embed name and value on the same line #2233

Answered by CottageDwellingCat
frontez asked this question in Q&A
Discussion options

You must be logged in to vote

That is not possible with Discord embed fields, you could achieve that look with something like

var inpt = new List<string>()
{
	"cats",
	"are",
	"very",
	"cute",
};

string body = inpt.Select(x => $"**{inpt.IndexOf(x) + 1}:** {x}").Aggregate((x, y) => $"{x}\n{y}");

EmbedBuilder eb = new()
{
	Title = "Cats",
	Description = body,
	Color = Color.Red
};

await channel.SendMessageAsync(embed: eb.Build());

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frontez
Comment options

Answer selected by csmir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants