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
on
paused
playing
ready
volume
default
Max
Listeners
Methods
add
Listener
connect
disconnect
emit
event
Names
get
Max
Listeners
heartbeat
listener
Count
listeners
off
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
receive
register
Receive
Event
Handler
remove
All
Listeners
remove
Listener
resume
sendWS
set
Max
Listeners
set
Speaking
set
Volume
stop
Playing
switch
Channel
toJSON
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
|
VoiceStreamCurrent
id
id
:
string
on
on
:
VoiceEvents
<
VoiceConnection
>
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
connect
connect
(
data
:
VoiceConnectData
)
:
void
|
Timer
Parameters
data:
VoiceConnectData
Returns
void
|
Timer
disconnect
disconnect
(
error
?:
Error
, reconnecting
?:
boolean
)
:
void
Parameters
Optional
error:
Error
Optional
reconnecting:
boolean
Returns
void
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
heartbeat
heartbeat
(
)
:
void
Returns
void
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
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
:
"opus"
|
"pcm"
)
:
VoiceDataStream
Parameters
type:
"opus"
|
"pcm"
Returns
VoiceDataStream
register
Receive
Event
Handler
register
Receive
Event
Handler
(
)
:
void
Returns
void
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
sendWS
sendWS
(
op
:
number
, data
:
Record
<
string
,
unknown
>
)
:
void
Parameters
op:
number
data:
Record
<
string
,
unknown
>
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
VoiceConnection
Parameters
n:
number
Returns
VoiceConnection
set
Speaking
set
Speaking
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
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
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
on
paused
playing
ready
volume
default
Max
Listeners
add
Listener
connect
disconnect
emit
event
Names
get
Max
Listeners
heartbeat
listener
Count
listeners
off
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
receive
register
Receive
Event
Handler
remove
All
Listeners
remove
Listener
resume
sendWS
set
Max
Listeners
set
Speaking
set
Volume
stop
Playing
switch
Channel
toJSON
update
Voice
State
listener
Count
Generated using
TypeDoc
since v4.0.0