Search
Preparing search index...
The search index is not available
lavaclient
Options
All
Public
Public/Protected
All
Inherited
Menu
lavaclient
lib/cluster/ClusterNode
ClusterNode
Class ClusterNode
Modules
index
lib/
Player
lib/
Utils
lib/cluster/
Cluster
lib/cluster/
Cluster
Node
lib/node/
Connection
lib/node/
Node
lib/node/
Node
State
lib/node/REST
Cluster
Node
constructor
cluster
conn
id
players
rest
send
Gateway
Payload
state
stats
user
Id
DEBUG_
FORMAT
DEBUG_
FORMAT_
PLAYER
DEFAULT_
STATS
penalties
connect
create
Player
debug
destroy
Player
emit
handle
Voice
Update
Hierarchy
Node
ClusterNode
Index
Constructors
constructor
Properties
cluster
conn
id
players
rest
send
Gateway
Payload
state
stats
user
Id
DEBUG_
FORMAT
DEBUG_
FORMAT_
PLAYER
DEFAULT_
STATS
Accessors
penalties
Methods
connect
create
Player
debug
destroy
Player
emit
handle
Voice
Update
Constructors
constructor
new
Cluster
Node
(
cluster
:
Cluster
, id
:
string
, info
:
ConnectionInfo
)
:
ClusterNode
Parameters
cluster:
Cluster
id:
string
info:
ConnectionInfo
Returns
ClusterNode
Properties
Readonly
cluster
cluster
:
Cluster
Readonly
conn
conn
:
Connection
Readonly
id
id
:
string
Readonly
players
players
:
Map
<
string
,
Player
<
ClusterNode
>
>
= ...
Readonly
rest
rest
:
REST
= ...
Readonly
send
Gateway
Payload
send
Gateway
Payload
:
SendGatewayPayload
state
state
:
NodeState
= ...
stats
stats
:
StatsData
= ...
Optional
user
Id
user
Id
:
string
Static
DEBUG_
FORMAT
DEBUG_
FORMAT
:
string
= "{topic}: {message}"
Static
DEBUG_
FORMAT_
PLAYER
DEBUG_
FORMAT_
PLAYER
:
string
= "[player {player}] {topic}: {message}"
Static
DEFAULT_
STATS
DEFAULT_
STATS
:
StatsData
= ...
Accessors
penalties
get
penalties
(
)
:
number
Returns
number
Methods
connect
connect
(
user
?:
undefined
|
string
|
DiscordResource
)
:
void
Parameters
user:
undefined
|
string
|
DiscordResource
= ...
Returns
void
create
Player
create
Player
(
guild
:
string
|
DiscordResource
)
:
Player
<
ClusterNode
>
Parameters
guild:
string
|
DiscordResource
Returns
Player
<
ClusterNode
>
debug
debug
(
topic
:
string
, message
:
string
, player
?:
Player
<
Node
>
)
:
boolean
Parameters
topic:
string
message:
string
Optional
player:
Player
<
Node
>
Returns
boolean
destroy
Player
destroy
Player
(
guild
:
string
|
DiscordResource
)
:
boolean
Parameters
guild:
string
|
DiscordResource
Returns
boolean
emit
emit<U>
(
event
:
U
,
...
args
:
Parameters
<
NodeEvents
[
U
]
>
)
:
boolean
Type parameters
U
:
keyof
NodeEvents
Parameters
event:
U
Rest
...
args:
Parameters
<
NodeEvents
[
U
]
>
Returns
boolean
handle
Voice
Update
handle
Voice
Update
(
update
:
VoiceStateUpdate
|
VoiceServerUpdate
)
:
void
Parameters
update:
VoiceStateUpdate
|
VoiceServerUpdate
Returns
void
Generated using
TypeDoc