Discolink
GitHub
Preparing search index...
Node
Node
Class Node
A 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
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
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
GitHub
Discolink
Loading...
A class representing a lavalink node