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

@@ -305,6 +305,12 @@ export default class InternalClient {
});
}
// Backwards-compatible utility getter method for the first voice connection
// Thanks to #q (@qeled) for suggesting this
get voiceConnection() {
return this.voiceConnections[0];
}
// def forceFetchUsers
forceFetchUsers() {
this.sendWS({