Class: Rubycord::Events::ServerRoleDeleteEventHandler
- Inherits:
-
EventHandler
- Object
- EventHandler
- Rubycord::Events::ServerRoleDeleteEventHandler
- Defined in:
- lib/rubycord/events/roles.rb
Overview
EventHandler for ServerRoleDeleteEvent
Instance Method Summary collapse
Methods inherited from EventHandler
#after_call, #call, #initialize, #match, #matches_all
Constructor Details
This class inherits a constructor from Rubycord::Events::EventHandler
Instance Method Details
#matches?(event) ⇒ Boolean
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/rubycord/events/roles.rb', line 69 def matches?(event) # Check for the proper event type return false unless event.is_a? ServerRoleDeleteEvent [ matches_all(@attributes[:id], event.id) do |a, e| a.resolve_id == e.resolve_id end ].reduce(true, &:&) end |