ruvyrias / Exports / Connection
Class: Connection
Manages the connection between the player and an external source.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Connection(player
): Connection
The connection class
Parameters
Name | Type |
---|---|
player | Player |
Returns
Defined in
Properties
channel_id
• channel_id: null
| string
Defined in
endpoint
• endpoint: null
| string
Defined in
player
• player: Player
Defined in
region
• region: null
| string
Defined in
self_deaf
• self_deaf: boolean
Defined in
self_mute
• self_mute: boolean
Defined in
session_id
• session_id: null
| string
Defined in
token
• token: null
| string
Defined in
Methods
setServersUpdate
▸ setServersUpdate(data
): Promise
<void
>
Set the voice server update
Parameters
Name | Type | Description |
---|---|---|
data | IVoiceServer | The data from the voice server update |
Returns
Promise
<void
>
Defined in
setStateUpdate
▸ setStateUpdate(data
): Promise
<void
>
Set the state update
Parameters
Name | Type | Description |
---|---|---|
data | SetStateUpdate | The data from the state update |
Returns
Promise
<void
>