Constructor
new Player(options)
    Creates a new Player instance.
    Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | The options for the Player. Properties
 | 
Extends
- EventEmitter
Members
connectionInfo :Object
    The connection information.
    Type:
- Object
filters :Object
    The filters of the player
    Type:
- Object
guildId :string
    The ID of the guild.
    Type:
- string
listeningWebSocket :Object
    Listening web socket, works with NodeLink only
    Type:
- Object
node :string
    The node to connect to.
    Type:
- string
paused :boolean
    Whether the player is paused
    Type:
- boolean
position :number
    The position of the track
    Type:
- number
status :string
    The status of the player
    Type:
- string
track :Object
    The track that is currently playing
    Type:
- Object
volume :number
    The volume of the player
    Type:
- number
Methods
(async) clearFilter() → {Object}
    Clear filter
Returns:
    - Request result
- Type
- Object
(async) connect()
    Start connection between LavaLink/NodeLink and Discord voice server
        
            
    
    
    (async) destroy() → {Object}
    Destroy this player on the server
Returns:
    - Request result
- Type
- Object
(async) get() → {Object}
    Get this player's information
Returns:
    - This player's information
- Type
- Object
(async) getFilters() → {Object}
    Get filters
Returns:
    - Filters
- Type
- Object
(async) getVolume() → {number}
    Get volume
Returns:
    - Volume
- Type
- number
handleEvents(data)
    Function for handling events
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Object | The data to handle | 
handlePlayerUpdate(data) → {Object}
    Function for handling player updates
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Object | The data to handle | 
Returns:
    - This player instance
- Type
- Object
(async) pause() → {Object}
    Pause playing
Returns:
    - Request result
- Type
- Object
(async) play(data) → {Object}
    Plays a track
    Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
| data | Object | The data to play Properties
 | 
Returns:
    - Request result
- Type
- Object
(async) resume() → {Object}
    Resume playing
Returns:
    - Request result
- Type
- Object
(async) seek(int) → {number}
    Seek track
    Parameters:
| Name | Type | Description | 
|---|---|---|
| int | number | The position to seek to | 
Returns:
    - Request result
- Type
- number
(async) setFilter(data) → {Object}
    Set filter
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Object | The filter to set | 
Returns:
    - This node instance
- Type
- Object
(async) setVolume(data) → {Object}
    Set volume
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | number | The volume to set | 
Returns:
    - Request result
- Type
- Object
(async) startListen() → {Object}
    Start listening on VC
Returns:
    - An event emitter for listening
- Type
- Object
(async) stop() → {Object}
    Stop playing
Returns:
    - Request result
- Type
- Object
(async) stopListen() → {Boolean}
    Stop listening on VC
Returns:
    Return true if stopped listening
- Type
- Boolean
(async) update(data, noReplace) → {Object}
    Update player data
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Object | The data to update | 
| noReplace | boolean | Whether to replace the data | 
Returns:
    - Request result
- Type
- Object