more voice stuff

This commit is contained in:
Amish Shah
2016-08-23 16:59:34 +01:00
parent f38aff7523
commit 0edf838474
4 changed files with 29 additions and 2 deletions

View File

@@ -42,6 +42,10 @@ class VoiceChannel extends GuildChannel {
setBitrate(bitrate) {
return this.rest.client.rest.methods.updateChannel(this, { bitrate });
}
join() {
return this.client.voice.joinChannel(this);
}
}
module.exports = VoiceChannel;