field

inline fun field(builder: EmbedBuilder.Field.() -> Unit)(source)

Adds a new Field configured by the builder.


inline fun field(name: String, inline: Boolean = false, value: () -> String = { ZERO_WIDTH_SPACE })(source)

Adds a new Field using the given name and value.

Parameters

inline

Whether the field should be rendered inline, false by default.

value

The value or 'description' of the Field, ZERO_WIDTH_SPACE by default. Limited to the length of Field.Limits.value.

name

The name or 'title' of the Field, ZERO_WIDTH_SPACE by default. Limited in to the length of Field.Limits.name.