Last active
June 20, 2021 12:59
-
-
Save mattantonelli/87e5d96dd0bfd6c3d43050a46308474d to your computer and use it in GitHub Desktop.
Generate a unique list of users who provided any reaction on a given Discord message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reactions = message.reactions.values.map(&:to_s) | |
| reactions.flat_map { |reaction| message.reacted_with(reaction, limit: nil) }.map(&:distinct).uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment