Class: MijDiscord::Events::UpdateVoiceState

Inherits:
Member show all
Defined in:
lib/mij-discord/events/member.rb

Instance Attribute Summary collapse

Attributes inherited from Member

#user

Attributes inherited from Server

#server

Attributes inherited from Generic

#bot

Instance Method Summary collapse

Methods inherited from EventBase

delegate_method, filter_match, inherited, #inspect, #trigger?

Constructor Details

#initialize(bot, user, state) ⇒ UpdateVoiceState

Returns a new instance of UpdateVoiceState.



60
61
62
63
64
# File 'lib/mij-discord/events/member.rb', line 60

def initialize(bot, user, state)
  super(bot, user)

  @state = state
end

Instance Attribute Details

#stateObject (readonly)

Returns the value of attribute state.



56
57
58
# File 'lib/mij-discord/events/member.rb', line 56

def state
  @state
end