Alchemy.Client.get_reactions
You're seeing just the function
get_reactions
, go back to Alchemy.Client module for more information.
Link to this function
get_reactions(arg1, emoji)
Specs
get_reactions( Alchemy.Message.t() | {channel_id(), message_id()}, unicode() | Alchemy.Reaction.Emoji.t() ) :: {:ok, [Alchemy.User.t()]} | {:error, term()}
Gets a list of users who reacted to message with a particular emoji.
Examples
Cogs.def react do {:ok, message} = Cogs.say("react to this!") Process.sleep(10000) {:ok, users} = Client.get_reactions(message, "❤") Cogs.say("#{length(users)} users reacted with a ❤!") end