Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
SharedStream
Class SharedStream
Hierarchy
EventEmitter
SharedStream
Index
Constructors
constructor
Properties
bitrate
channels
current
ended
frame
Duration
on
piper
playing
sampling
Rate
speaking
voice
Connections
volume
default
Max
Listeners
Methods
add
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
once
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Speaking
set
Volume
stop
Playing
listener
Count
Constructors
constructor
new
Shared
Stream
(
options
?:
EventEmitterOptions
)
:
SharedStream
Parameters
Optional
options:
EventEmitterOptions
Returns
SharedStream
Properties
bitrate
bitrate
:
number
channels
channels
:
number
Optional
current
current
:
undefined
|
VoiceStreamCurrent
ended
ended
:
boolean
frame
Duration
frame
Duration
:
number
on
on
:
StreamEvents
<
SharedStream
>
piper
piper
:
Piper
playing
playing
:
boolean
sampling
Rate
sampling
Rate
:
number
speaking
speaking
:
boolean
voice
Connections
voice
Connections
:
Collection
<
VoiceConnection
>
volume
volume
:
number
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
add
(
connection
:
VoiceConnection
)
:
void
Parameters
connection:
VoiceConnection
Returns
void
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
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
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
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
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
remove
(
connection
:
VoiceConnection
)
:
void
Parameters
connection:
VoiceConnection
Returns
void
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
SharedStream
Parameters
Optional
event:
string
|
symbol
Returns
SharedStream
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
SharedStream
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
SharedStream
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
SharedStream
Parameters
n:
number
Returns
SharedStream
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
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
Shared
Stream
constructor
bitrate
channels
current
ended
frame
Duration
on
piper
playing
sampling
Rate
speaking
voice
Connections
volume
default
Max
Listeners
add
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
once
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Speaking
set
Volume
stop
Playing
listener
Count
Generated using
TypeDoc
since v4.0.0