Class: Discordrb::Events::VoiceStateUpdateEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/voice_state_update.rb

Overview

Event raised when a user's voice state updates

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def channel
  @channel
end

#deafObject (readonly)

Returns the value of attribute deaf.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def deaf
  @deaf
end

#muteObject (readonly)

Returns the value of attribute mute.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def mute
  @mute
end

#old_channelChannel? (readonly)

Returns the old channel this user was on, or nil if the user is newly joining voice.

Returns:

  • (Channel, nil)

    the old channel this user was on, or nil if the user is newly joining voice.



12
13
14
# File 'lib/discordrb/events/voice_state_update.rb', line 12

def old_channel
  @old_channel
end

#self_deafObject (readonly)

Returns the value of attribute self_deaf.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def self_deaf
  @self_deaf
end

#self_muteObject (readonly)

Returns the value of attribute self_mute.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def self_mute
  @self_mute
end

#serverObject (readonly)

Returns the value of attribute server.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def server
  @server
end

#session_idObject (readonly)

Returns the value of attribute session_id.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def session_id
  @session_id
end

#suppressObject (readonly)

Returns the value of attribute suppress.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def suppress
  @suppress
end

#tokenObject (readonly)

Returns the value of attribute token.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def token
  @token
end

#userObject (readonly)

Returns the value of attribute user.



9
10
11
# File 'lib/discordrb/events/voice_state_update.rb', line 9

def user
  @user
end