Class: Discordrb::Events::VoiceServerUpdateEventHandler
- Inherits:
-
EventHandler
- Object
- EventHandler
- Discordrb::Events::VoiceServerUpdateEventHandler
- Defined in:
- lib/discordrb/events/voice_server_update.rb
Overview
Event handler for VoiceServerUpdateEvent
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
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/discordrb/events/voice_server_update.rb', line 33 def matches?(event) return false unless event.is_a? VoiceServerUpdateEvent [ matches_all(@attributes[:from], event.server) do |a, e| a == if a.is_a? String e.name else e end end ] end |