Documentation

This commit is contained in:
Amish Shah
2016-08-23 21:16:49 +01:00
parent d0a76f3f38
commit f9a553a7f0
5 changed files with 76 additions and 5 deletions

View File

@@ -43,6 +43,15 @@ class VoiceChannel extends GuildChannel {
return this.rest.client.rest.methods.updateChannel(this, { bitrate });
}
/**
* Attempts to join this Voice Channel
* @returns {Promise<VoiceConnection, Error>}
* @example
* // join a voice channel
* voiceChannel.join()
* .then(connection => console.log('Connected!'))
* .catch(console.log);
*/
join() {
return this.client.voice.joinChannel(this);
}