Method: Discordrb::Message#all_reaction_users
- Defined in:
- lib/discordrb/data/message.rb
#all_reaction_users(limit: 100) ⇒ Hash<String => Array<User>>
Returns a hash of all reactions to a message as keys and the users that reacted to it as values.
334 335 336 337 |
# File 'lib/discordrb/data/message.rb', line 334 def all_reaction_users(limit: 100) all_reactions = @reactions.map { |r| { r.to_s => reacted_with(r, limit: limit) } } all_reactions.reduce({}, :merge) end |