Added EmbedBuilder field helpers

This commit is contained in:
RogueException
2017-04-01 18:19:50 -03:00
parent bc2e0a19af
commit a7f50e7f59

View File

@@ -92,6 +92,24 @@ namespace Discord
return this;
}
public EmbedBuilder AddField(string name, object value)
{
var field = new EmbedFieldBuilder()
.WithIsInline(false)
.WithName(name)
.WithValue(value);
_fields.Add(field);
return this;
}
public EmbedBuilder AddInlineField(string name, object value)
{
var field = new EmbedFieldBuilder()
.WithIsInline(true)
.WithName(name)
.WithValue(value);
_fields.Add(field);
return this;
}
public EmbedBuilder AddField(EmbedFieldBuilder field)
{
_fields.Add(field);