Add a backwards-compatible getter for the first voice connection, thanks @qeled

This commit is contained in:
meew0
2016-04-06 15:00:14 +02:00
parent 877eaab3c1
commit bf78c441dd
4 changed files with 33 additions and 1 deletions

View File

@@ -165,6 +165,14 @@ export default class Client extends EventEmitter {
return this.internal.voiceConnections;
}
/**
* The first voice connection the bot has connected to. Available for backwards compatibility.
* @type {VoiceConnection} first voice connection
*/
get voiceConnection() {
return this.internal.voiceConnection;
}
/**
* Unix timestamp of when the Client first emitted the `ready `event. Only available after `ready` event has been emitted.
* @type {Number} timestamp of ready time