Search
Preparing search index...
The search index is not available
discord.js-lavalink
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
PlayerManager
Class PlayerManager
Hierarchy
EventEmitter
PlayerManager
Index
Constructors
constructor
Properties
client
nodes
players
shards
user
voice
Servers
voice
States
default
Max
Listeners
Accessors
ideal
Nodes
Methods
add
Listener
create
Node
emit
event
Names
get
Max
Listeners
join
leave
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
remove
Node
sendWS
set
Max
Listeners
switch
voice
Server
Update
voice
State
Update
listener
Count
Constructors
constructor
new
Player
Manager
(
client
:
Client
, nodes
:
LavalinkNodeOptions
[]
, options
:
PlayerManagerOptions
)
:
PlayerManager
Parameters
client:
Client
nodes:
LavalinkNodeOptions
[]
options:
PlayerManagerOptions
Returns
PlayerManager
Properties
client
client
:
Client
nodes
nodes
:
Collection
<
string
,
LavalinkNode
>
= new Collection<string, LavalinkNode>()
players
players
:
Collection
<
string
,
Player
>
= new Collection<string, Player>()
shards
shards
:
number
user
user
:
string
voice
Servers
voice
Servers
:
Collection
<
string
,
VoiceServerUpdate
>
= new Collection<string, VoiceServerUpdate>()
voice
States
voice
States
:
Collection
<
string
,
VoiceStateUpdate
>
= new Collection<string, VoiceStateUpdate>()
Static
default
Max
Listeners
default
Max
Listeners
:
number
Accessors
ideal
Nodes
get
idealNodes
(
)
:
Collection
<
string
,
LavalinkNode
>
Returns
Collection
<
string
,
LavalinkNode
>
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
create
Node
create
Node
(
options
:
LavalinkNodeOptions
)
:
LavalinkNode
Parameters
options:
LavalinkNodeOptions
Returns
LavalinkNode
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
join
join
(
data
:
PlayerManagerJoinData
, __namedParameters
?:
{
selfdeaf
:
boolean
;
selfmute
:
boolean
}
)
:
Player
Parameters
data:
PlayerManagerJoinData
Default value
__namedParameters:
{
selfdeaf
:
boolean
;
selfmute
:
boolean
}
= {}
selfdeaf
:
boolean
selfmute
:
boolean
Returns
Player
leave
leave
(
guild
:
string
)
:
Promise
<
boolean
>
Parameters
guild:
string
Returns
Promise
<
boolean
>
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
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
remove
Node
remove
Node
(
id
:
string
)
:
boolean
Parameters
id:
string
Returns
boolean
sendWS
sendWS
(
data
:
DiscordPacket
)
:
void
Parameters
data:
DiscordPacket
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
switch
switch
(
player
:
Player
, node
:
LavalinkNode
)
:
Promise
<
Player
>
Parameters
player:
Player
node:
LavalinkNode
Returns
Promise
<
Player
>
voice
Server
Update
voice
Server
Update
(
data
:
VoiceServerUpdate
)
:
Promise
<
boolean
>
Parameters
data:
VoiceServerUpdate
Returns
Promise
<
boolean
>
voice
State
Update
voice
State
Update
(
data
:
VoiceStateUpdate
)
:
Promise
<
boolean
>
Parameters
data:
VoiceStateUpdate
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
Player
Manager
constructor
client
nodes
players
shards
user
voice
Servers
voice
States
default
Max
Listeners
ideal
Nodes
add
Listener
create
Node
emit
event
Names
get
Max
Listeners
join
leave
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
remove
Node
sendWS
set
Max
Listeners
switch
voice
Server
Update
voice
State
Update
listener
Count
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