Alchemy.Embed.color
You're seeing just the function
color
, go back to Alchemy.Embed module for more information.
Link to this function
color(embed, integer)
Specs
Sets the color of an embed
Color should be 3 byte integer, with each byte representing a single
color component; i.e. 0xRrGgBb
Examples
Cogs.def embed do
{:ok, message} =
%Embed{description: "the best embed"}
|> color(0xc13261)
|> Embed.send
Process.sleep(2000)
Client.edit_embed(message, embed |> color(0x5aa4d4))
end