Alchemy.Embed.author

You're seeing just the function author, go back to Alchemy.Embed module for more information.
Link to this function

author(embed, author)

Specs

author(
  t(),
  [name: String.t(), url: url(), icon_url: url()] | Alchemy.Embed.Author.t()
) :: t()

Adds author information to an embed.

Note that the proxy_icon_url, height, and width fields have no effect, when using a pre-made Author struct.

Options

  • name

    The name of the author.

  • url

    The url of the author.

  • icon_url

    The url of the icon to display.

Examples

Cogs.def embed do
  %Embed{}
  |> author(name: "John",
            url: "https://discord.com/developers"
            icon_url: "http://i.imgur.com/3nuwWCB.jpg")
  |> Embed.send
end