Alchemy.Embed.field
You're seeing just the function
field
, go back to Alchemy.Embed module for more information.
Link to this function
field(embed, name, value, options \\ [])
Adds a field to an embed.
Fields are appended when using this method, so the order you pipe them in,
is the order they'll end up when sent. The name and value must be non empty
strings. You can have a maximum of 25
fields.
Parameters
name
The title of the embed.
value
The text of the field
Options
inline
When setting this to
true
, up to 3 fields can appear side by side, given they are all inlined.
Examples
%Embed{}
|> field("Field1", "the best field!")
|> field("Inline1", "look a field ->")
|> field("Inline2", "<- look a field")