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
current
ended
playing
speaking
volume
default
Max
Listeners
Methods
add
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Volume
stop
Playing
listener
Count
Constructors
constructor
new
Shared
Stream
(
options
?:
EventEmitterOptions
)
:
SharedStream
Parameters
Optional
options:
EventEmitterOptions
Returns
SharedStream
Properties
Optional
current
current
:
undefined
|
{
options
:
VoiceResourceOptions
;
pausedTime
?:
undefined
|
number
;
pausedTimestamp
?:
undefined
|
number
;
playTime
:
number
;
startTime
:
number
}
ended
ended
:
boolean
playing
playing
:
boolean
speaking
speaking
:
boolean
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
on
on
(
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
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
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
current
ended
playing
speaking
volume
default
Max
Listeners
add
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
remove
All
Listeners
remove
Listener
set
Max
Listeners
set
Volume
stop
Playing
listener
Count
Generated using
TypeDoc
since v4.0.0