Message reactions. Emojis are unicode characters or name:id for custom ones.
Every function returns {:ok, result}, :ok when Discord sends no body, or
{:error, %Lingo.Error{}}. Calls go to the current bot (see Lingo.with_bot/2).
Summary
Functions
Reacts to a message, with a unicode emoji or name:id for a custom one.
Removes every reaction from a message.
Removes every reaction with one emoji from a message.
Removes the bot's reaction.
Removes another user's reaction.
Lists the users who reacted with an emoji.
Functions
@spec create(Lingo.Api.id(), Lingo.Api.id(), String.t() | Lingo.Type.Emoji.t()) :: Lingo.Api.result()
Reacts to a message, with a unicode emoji or name:id for a custom one.
@spec delete_all(Lingo.Api.id(), Lingo.Api.id()) :: Lingo.Api.result()
Removes every reaction from a message.
@spec delete_all_for_emoji( Lingo.Api.id(), Lingo.Api.id(), String.t() | Lingo.Type.Emoji.t() ) :: Lingo.Api.result()
Removes every reaction with one emoji from a message.
@spec delete_own(Lingo.Api.id(), Lingo.Api.id(), String.t() | Lingo.Type.Emoji.t()) :: Lingo.Api.result()
Removes the bot's reaction.
@spec delete_user( Lingo.Api.id(), Lingo.Api.id(), String.t() | Lingo.Type.Emoji.t(), Lingo.Api.id() ) :: Lingo.Api.result()
Removes another user's reaction.
@spec list_users( Lingo.Api.id(), Lingo.Api.id(), String.t() | Lingo.Type.Emoji.t(), keyword() ) :: Lingo.Api.result([Lingo.Type.User.t()])
Lists the users who reacted with an emoji.