Discolink
GitHub
Docs
Preparing search index...
Node
Node
Class Node
Class representing a lavalink node
Hierarchy
EventEmitter
<
NodeEventMap
>
Node
Index
Constructors
constructor
Properties
name
rest
Accessors
client
Id
session
Id
ping
stats
state
connecting
connected
ready
reconnecting
disconnected
reconnect
Limit
reconnect
Attempts
Methods
connect
disconnect
to
String
Events
connect
ready
dispatch
error
close
disconnect
Constructors
constructor
new
Node
(
options
:
NodeOptions
)
:
Node
Parameters
options
:
NodeOptions
Returns
Node
Properties
Readonly
name
name
:
string
Readonly
rest
rest
:
REST
Accessors
client
Id
get
clientId
()
:
string
Returns
string
session
Id
get
sessionId
()
:
string
|
null
Returns
string
|
null
ping
get
ping
()
:
number
|
null
Returns
number
|
null
stats
get
stats
()
:
StatsPayload
|
null
Returns
StatsPayload
|
null
state
get
state
()
:
NodeState
Returns
NodeState
connecting
get
connecting
()
:
boolean
Returns
boolean
connected
get
connected
()
:
boolean
Returns
boolean
ready
get
ready
()
:
boolean
Returns
boolean
reconnecting
get
reconnecting
()
:
boolean
Returns
boolean
disconnected
get
disconnected
()
:
boolean
Returns
boolean
reconnect
Limit
get
reconnectLimit
()
:
number
Returns
number
reconnect
Attempts
get
reconnectAttempts
()
:
number
Returns
number
Methods
connect
connect
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
disconnect
disconnect
(
code
?:
number
,
reason
?:
string
)
:
Promise
<
void
>
Parameters
code
:
number
= CloseCodes.Normal
reason
:
string
= "disconnected"
Returns
Promise
<
void
>
to
String
toString
()
:
string
Returns a string representation of an object.
Returns
string
Events
connect
connect
(
reconnects
:
number
,
name
:
string
)
:
void
Parameters
reconnects
:
number
name
:
string
Returns
void
ready
ready
(
resumed
:
boolean
,
sessionId
:
string
,
name
:
string
)
:
void
Parameters
resumed
:
boolean
sessionId
:
string
name
:
string
Returns
void
dispatch
dispatch
(
payload
:
MessagePayload
,
name
:
string
)
:
void
Parameters
payload
:
MessagePayload
name
:
string
Returns
void
error
error
(
error
:
Error
,
name
:
string
)
:
void
Parameters
error
:
Error
name
:
string
Returns
void
close
close
(
code
:
number
,
reason
:
string
,
name
:
string
)
:
void
Parameters
code
:
number
reason
:
string
name
:
string
Returns
void
disconnect
disconnect
(
code
:
number
,
reason
:
string
,
byLocal
:
boolean
,
name
:
string
)
:
void
Parameters
code
:
number
reason
:
string
byLocal
:
boolean
name
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
rest
Accessors
client
Id
session
Id
ping
stats
state
connecting
connected
ready
reconnecting
disconnected
reconnect
Limit
reconnect
Attempts
Methods
connect
disconnect
to
String
Events
connect
ready
dispatch
error
close
disconnect
GitHub
Docs
Discolink
Loading...
Class representing a lavalink node