Class: Discordrb::Events::ServerRoleDeleteEventHandler
- Inherits:
-
EventHandler
- Object
- EventHandler
- Discordrb::Events::ServerRoleDeleteEventHandler
- Defined in:
- lib/discordrb/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 Discordrb::Events::EventHandler
Instance Method Details
#matches?(event) ⇒ Boolean
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/discordrb/events/roles.rb', line 71 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 |