Class: Rubycord::VoiceState
- Inherits:
-
Object
- Object
- Rubycord::VoiceState
- Defined in:
- lib/rubycord/data/voice_state.rb
Overview
A voice state represents the state of a member's connection to a voice channel. It includes data like the voice channel the member is connected to and mute/deaf flags.
Instance Attribute Summary collapse
-
#deaf ⇒ true, false
readonly
Whether this voice state's member is deafened server-wide.
-
#mute ⇒ true, false
readonly
Whether this voice state's member is muted server-wide.
-
#self_deaf ⇒ true, false
readonly
Whether this voice state's member has deafened themselves.
-
#self_mute ⇒ true, false
readonly
Whether this voice state's member has muted themselves.
-
#user_id ⇒ Integer
readonly
The ID of the user whose voice state is represented by this object.
-
#voice_channel ⇒ Channel
readonly
The voice channel this voice state's member is in.
Instance Attribute Details
#deaf ⇒ true, false (readonly)
Returns whether this voice state's member is deafened server-wide.
12 13 14 |
# File 'lib/rubycord/data/voice_state.rb', line 12 def deaf @deaf end |
#mute ⇒ true, false (readonly)
Returns whether this voice state's member is muted server-wide.
9 10 11 |
# File 'lib/rubycord/data/voice_state.rb', line 9 def mute @mute end |
#self_deaf ⇒ true, false (readonly)
Returns whether this voice state's member has deafened themselves.
18 19 20 |
# File 'lib/rubycord/data/voice_state.rb', line 18 def self_deaf @self_deaf end |
#self_mute ⇒ true, false (readonly)
Returns whether this voice state's member has muted themselves.
15 16 17 |
# File 'lib/rubycord/data/voice_state.rb', line 15 def self_mute @self_mute end |
#user_id ⇒ Integer (readonly)
Returns the ID of the user whose voice state is represented by this object.
6 7 8 |
# File 'lib/rubycord/data/voice_state.rb', line 6 def user_id @user_id end |
#voice_channel ⇒ Channel (readonly)
Returns the voice channel this voice state's member is in.
21 22 23 |
# File 'lib/rubycord/data/voice_state.rb', line 21 def voice_channel @voice_channel end |