Alchemy.Client.add_reaction
You're seeing just the function
add_reaction
, go back to Alchemy.Client module for more information.
Link to this function
add_reaction(message, emoji)
Specs
add_reaction( Alchemy.Message.t() | {channel_id(), message_id()}, unicode() | Alchemy.Reaction.Emoji.t() ) :: {:ok, nil} | {:error, term()}
Adds a reaction to a message.
This supports sending either a custom emoji object, or a unicode literal.
While sending raw unicode is technically possible, you'll usually run
into url encoding issues due to hidden characters if you try to send something like
"❤️️"; use \u2764
instead.
Examples
Cogs.def heart do
Client.add_reaction(message, "️\u2764")
end