Connection
ruvyrias / Connection
Class: Connection
Defined in: src/Connection.ts:72
Manages the connection between the player and an external source.
Constructors
Constructor
new Connection(
player
):Connection
Defined in: src/Connection.ts:86
The connection class
Parameters
player
Returns
Connection
Properties
channel_id
channel_id:
null
|string
Defined in: src/Connection.ts:77
endpoint
endpoint:
null
|string
Defined in: src/Connection.ts:80
player
player:
Player
Defined in: src/Connection.ts:73
region
region:
null
|string
Defined in: src/Connection.ts:74
self_deaf
self_deaf:
boolean
Defined in: src/Connection.ts:76
self_mute
self_mute:
boolean
Defined in: src/Connection.ts:75
session_id
session_id:
null
|string
Defined in: src/Connection.ts:78
token
token:
null
|string
Defined in: src/Connection.ts:79
Methods
setServersUpdate()
setServersUpdate(
data
):Promise
<void
>
Defined in: src/Connection.ts:101
Set the voice server update
Parameters
data
The data from the voice server update
Returns
Promise
<void
>
setStateUpdate()
setStateUpdate(
data
):Promise
<void
>
Defined in: src/Connection.ts:132
Set the state update
Parameters
data
The data from the state update
Returns
Promise
<void
>