Search
Preparing search index...
The search index is not available
discord.js-lavalink
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
Player
Class Player
Hierarchy
EventEmitter
Player
Index
Constructors
constructor
Properties
channel
client
id
manager
node
paused
playing
state
timestamp
track
voice
Update
State
default
Max
Listeners
Methods
add
Listener
connect
destroy
emit
equalizer
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
resume
seek
set
Max
Listeners
stop
volume
listener
Count
Constructors
constructor
new
Player
(
node
:
LavalinkNode
, options
:
PlayerOptions
)
:
Player
Parameters
node:
LavalinkNode
options:
PlayerOptions
Returns
Player
Properties
channel
channel
:
string
client
client
:
Client
id
id
:
string
manager
manager
:
PlayerManager
node
node
:
LavalinkNode
paused
paused
:
boolean
playing
playing
:
boolean
state
state
:
PlayerState
timestamp
timestamp
:
number
|
null
track
track
:
string
|
null
voice
Update
State
voice
Update
State
:
PlayerUpdateVoiceState
|
null
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
connect
connect
(
data
:
PlayerUpdateVoiceState
)
:
Promise
<
boolean
>
Parameters
data:
PlayerUpdateVoiceState
Returns
Promise
<
boolean
>
destroy
destroy
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
equalizer
equalizer
(
bands
:
PlayerEqualizerBand
[]
)
:
Promise
<
boolean
>
Parameters
bands:
PlayerEqualizerBand
[]
Returns
Promise
<
boolean
>
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
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
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
pause
pause
(
pause
:
boolean
)
:
Promise
<
boolean
>
Parameters
pause:
boolean
Returns
Promise
<
boolean
>
play
play
(
track
:
string
, options
?:
PlayerPlayOptions
)
:
Promise
<
boolean
>
Parameters
track:
string
Default value
options:
PlayerPlayOptions
= {}
Returns
Promise
<
boolean
>
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
resume
resume
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
seek
seek
(
position
:
number
)
:
Promise
<
boolean
>
Parameters
position:
number
Returns
Promise
<
boolean
>
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
stop
stop
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
volume
volume
(
volume
:
number
)
:
Promise
<
boolean
>
Parameters
volume:
number
Returns
Promise
<
boolean
>
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
Lavalink
Node
Player
constructor
channel
client
id
manager
node
paused
playing
state
timestamp
track
voice
Update
State
default
Max
Listeners
add
Listener
connect
destroy
emit
equalizer
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
pause
play
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
resume
seek
set
Max
Listeners
stop
volume
listener
Count
Player
Manager
Discord
Packet
Lavalink
Node
Options
Lavalink
Node
Stats
Player
Equalizer
Band
Player
Manager
Join
Data
Player
Manager
Join
Options
Player
Manager
Options
Player
Options
Player
Play
Options
Player
State
Player
Update
Voice
State
Voice
Server
Update
Voice
State
Update
Generated using
TypeDoc
since v4.0.0