Alchemy.Embed.footer

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

footer(embed, footer)

Specs

footer(t(), [text: String.t(), icon_url: url()] | Alchemy.Embed.Footer.t()) ::
  t()

Adds a footer to an embed.

Note that the proxy_icon_url field has no effect, when using a pre-made Footer struct.

Options

  • text

    The content of the footer.

  • icon_url

    The icon the footer should have

Examples

Cogs.def you do
  %Embed{}
  |> footer(text: "<- this is you",
            icon_url: message.author |> User.avatar_url)
  |> Embed.send
end