Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
VoiceConnection
Class VoiceConnection
Hierarchy
EventEmitter
VoiceConnection
Implements
SimpleJSON
Index
Constructors
constructor
Properties
channelID
connecting
current
id
paused
playing
ready
volume
default
Max
Listeners
Methods
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
receive
remove
All
Listeners
remove
Listener
resume
set
Max
Listeners
set
Volume
stop
Playing
switch
Channel
toJSON
to
String
update
Voice
State
listener
Count
Constructors
constructor
new
Voice
Connection
(
id
:
string
, options
?:
{
opusOnly
?:
undefined
|
boolean
;
shard
?:
undefined
|
Shard
;
shared
?:
undefined
|
boolean
}
)
:
VoiceConnection
Parameters
id:
string
Optional
options:
{
opusOnly
?:
undefined
|
boolean
;
shard
?:
undefined
|
Shard
;
shared
?:
undefined
|
boolean
}
Optional
opus
Only
?:
undefined
|
boolean
Optional
shard
?:
undefined
|
Shard
Optional
shared
?:
undefined
|
boolean
Returns
VoiceConnection
Properties
channelID
channelID
:
string
connecting
connecting
:
boolean
Optional
current
current
:
undefined
|
{
options
:
VoiceResourceOptions
;
pausedTime
?:
undefined
|
number
;
pausedTimestamp
?:
undefined
|
number
;
playTime
:
number
;
startTime
:
number
}
id
id
:
string
paused
paused
:
boolean
playing
playing
:
boolean
ready
ready
:
boolean
volume
volume
:
number
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
on
on
(
event
:
"warn"
|
"debug"
, listener
:
(
message
:
string
)
=>
void
)
:
VoiceConnection
on
(
event
:
"disconnect"
|
"error"
, listener
:
(
err
:
Error
)
=>
void
)
:
VoiceConnection
on
(
event
:
"pong"
, listener
:
(
latency
:
number
)
=>
void
)
:
VoiceConnection
on
(
event
:
"speakingStart"
, listener
:
(
userID
:
string
)
=>
void
)
:
VoiceConnection
on
(
event
:
"speakingStop"
, listener
:
(
userID
:
string
)
=>
void
)
:
VoiceConnection
on
(
event
:
"end"
, listener
:
(
)
=>
void
)
:
VoiceConnection
on
(
event
:
"userDisconnect"
, listener
:
(
userID
:
string
)
=>
void
)
:
VoiceConnection
Parameters
event:
"warn"
|
"debug"
listener:
(
message
:
string
)
=>
void
(
message
:
string
)
:
void
Parameters
message:
string
Returns
void
Returns
VoiceConnection
Parameters
event:
"disconnect"
|
"error"
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
VoiceConnection
Parameters
event:
"pong"
listener:
(
latency
:
number
)
=>
void
(
latency
:
number
)
:
void
Parameters
latency:
number
Returns
void
Returns
VoiceConnection
Parameters
event:
"speakingStart"
listener:
(
userID
:
string
)
=>
void
(
userID
:
string
)
:
void
Parameters
userID:
string
Returns
void
Returns
VoiceConnection
Parameters
event:
"speakingStop"
listener:
(
userID
:
string
)
=>
void
(
userID
:
string
)
:
void
Parameters
userID:
string
Returns
void
Returns
VoiceConnection
Parameters
event:
"end"
listener:
(
)
=>
void
(
)
:
void
Returns
void
Returns
VoiceConnection
Parameters
event:
"userDisconnect"
listener:
(
userID
:
string
)
=>
void
(
userID
:
string
)
:
void
Parameters
userID:
string
Returns
void
Returns
VoiceConnection
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
pause
pause
(
)
:
void
Returns
void
play
play
(
resource
:
string
|
Readable
, options
?:
VoiceResourceOptions
)
:
void
Parameters
resource:
string
|
Readable
Optional
options:
VoiceResourceOptions
Returns
void
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
receive
receive
(
type
:
string
)
:
VoiceDataStream
Parameters
type:
string
Returns
VoiceDataStream
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
VoiceConnection
Parameters
Optional
event:
string
|
symbol
Returns
VoiceConnection
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
VoiceConnection
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
VoiceConnection
resume
resume
(
)
:
void
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
VoiceConnection
Parameters
n:
number
Returns
VoiceConnection
set
Volume
set
Volume
(
volume
:
number
)
:
void
Parameters
volume:
number
Returns
void
stop
Playing
stop
Playing
(
)
:
void
Returns
void
switch
Channel
switch
Channel
(
channelID
:
string
)
:
void
Parameters
channelID:
string
Returns
void
toJSON
toJSON
(
props
?:
string
[]
)
:
JSONCache
Parameters
Optional
props:
string
[]
Returns
JSONCache
to
String
to
String
(
)
:
string
Returns
string
update
Voice
State
update
Voice
State
(
selfMute
:
boolean
, selfDeaf
:
boolean
)
:
void
Parameters
selfMute:
boolean
selfDeaf:
boolean
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Exports
Externals
Eris
Voice
Connection
constructor
channelID
connecting
current
id
paused
playing
ready
volume
default
Max
Listeners
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
receive
remove
All
Listeners
remove
Listener
resume
set
Max
Listeners
set
Volume
stop
Playing
switch
Channel
toJSON
to
String
update
Voice
State
listener
Count
Generated using
TypeDoc
since v4.0.0