Class: Discordrb::Events::ReactionRemoveAllEventHandler

Inherits:
EventHandler
  • Object
show all
Defined in:
lib/discordrb/events/reactions.rb

Overview

Event handler for ReactionRemoveAllEvent

Instance Method Summary collapse

Methods inherited from EventHandler

#after_call, #call, #initialize, #match, #matches_all

Constructor Details

This class inherits a constructor from Discordrb::Events::EventHandler

Instance Method Details

#matches?(event) ⇒ Boolean

Returns:

  • (Boolean)


105
106
107
108
109
110
111
# File 'lib/discordrb/events/reactions.rb', line 105

def matches?(event)
  # Check for the proper event type
  return false unless event.is_a? ReactionRemoveAllEvent

  # No attributes yet as there is no property available on the event that doesn't involve doing a resolution request
  [].reduce(true, &:&)
end