Class: Discordrb::VoiceState

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/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

Instance Attribute Details

#deaftrue, false (readonly)


14
15
16
# File 'lib/discordrb/data/voice_state.rb', line 14

def deaf
  @deaf
end

#mutetrue, false (readonly)


11
12
13
# File 'lib/discordrb/data/voice_state.rb', line 11

def mute
  @mute
end

#self_deaftrue, false (readonly)


20
21
22
# File 'lib/discordrb/data/voice_state.rb', line 20

def self_deaf
  @self_deaf
end

#self_mutetrue, false (readonly)


17
18
19
# File 'lib/discordrb/data/voice_state.rb', line 17

def self_mute
  @self_mute
end

#user_idInteger (readonly)


8
9
10
# File 'lib/discordrb/data/voice_state.rb', line 8

def user_id
  @user_id
end

#voice_channelChannel (readonly)


23
24
25
# File 'lib/discordrb/data/voice_state.rb', line 23

def voice_channel
  @voice_channel
end