Search…
⌃K

Poru

class Poru extends EventEmitter

  • Constructor
const {Poru} = require("poru");
client.poru = new Poru(client,nodes);
Parameter
Type
Client
Class
Nodes
Array
PoruOptions
Object

Overview

Properties
Methods
Events
client
createNode
nodeConnect
player
createConnection
nodeClose
user
decodeTrack
nodeError
nodes
init
trackStart
players
leastUsedNodes
trackError
voiceStates
search
socketClosed
sendWS
resolve
queueEnd
voiceServers
sendData
playerUpdate
debug
trackEnd

events

  • nodeConnect
Emitted when a Node is connected
Parameter
Type
node
Node
  • nodeClose
Emitted when a Node is disconnected
Parameter
Type
node
Node
  • nodeError
Emitted when a Node has an error.
Parameter
Type
event
Event
  • trackStart
Emitted when a track starts.
Perameters
Type
player
Player
track
Track
payload
TrackStart
  • playerUpdate
Emitted when a player is updated
Perameters
Type
player
Player
data
Object
  • trackEnd
Emitted when a track ends.
Parameters
Type
player
Player
track
Track
payload
TrackEnd
  • trackError
Emitted when a track has an error .
Parameters
Type
player
Player
track
Track
payload
TrackError
  • socketClosed
Emitted when a voice connection is closed.
Perameters
Type
player
Player
data
Object
  • queueEnd
Emitted when a player queue ends.
Perameters
Type
Player
Player
track
Track
data
Object