Alchemy.Client.remove_reaction
You're seeing just the function
remove_reaction
, go back to Alchemy.Client module for more information.
Link to this function
remove_reaction(message, emoji)
Specs
remove_reaction( Alchemy.Message.t() | {channel_id(), message_id()}, unicode() | Alchemy.Reaction.Emoji.t() ) :: {:ok, nil} | {:error, term()}
Removes a reaction on a message, posted by this user.
This doesn't require the MANAGE_MESSAGES
permission, unlike
delete_reaction
.
Example
Cogs.def indecisive do
Client.add_reaction(message, "❤")
Process.sleep(3000)
Client.remove_reaction(message, "❤")
end