Closed ghost closed 2 years ago
Theres already a EmbedBuilder.WithFields
and EmbedBuilder.AddField
method.
Theres already a
EmbedBuilder.WithFields
andEmbedBuilder.AddField
method.
So is possible to making fields like that (in EmbedBuilder blocks) or something for adding Filed to Filed List.
new EmbedBuilder()
{
Title = "",
Description = "",
Fields = new List<EmbedFieldBuilder>()
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
.WithField("Name", "Value", false)
}.Build();
It would be
new EmbedBuilder()
.WithTitle("Hello World!")
.AddField("Field Title", "Field content")
It would be
new EmbedBuilder() .WithTitle("Hello World!") .AddField("Field Title", "Field content")
yes, i see, but its can be good still for adding fields in the body, also i added some Formats, check them too. anyways if was good, merge it, if not reject.
All the additions that your making already exist in an easier form. I just dont see a need for them, sorry.
EmbedFieldBuilderExtensions
Hello 👋, i added a new Extension for EmbedFieldBuilder, its can make the codes more beautiful & clean .
with Extension
Without Extension
Format Extensions (User, Channel, Role Tags + Emote)