Alchemy.Client.edit_embed
You're seeing just the function
edit_embed
, go back to Alchemy.Client module for more information.
Link to this function
edit_embed(message, embed)
Specs
edit_embed( Alchemy.Message.t() | {channel_id(), message_id()}, Alchemy.Embed.t() ) :: {:ok, Alchemy.Message.t()} | {:error, term()}
Edits a previously sent embed.
Note that this can be accomplished via edit_message/3
as well, but that requires
editing the content as well.
Cogs.def embed do
embed = %Embed{description: "the best embed"}
|> color(0xc13261)
{:ok, message} = Embed.send(embed)
Process.sleep(2000)
Client.edit_embed(message, embed |> color(0x5aa4d4))
end