Replace console.log in catches with console.error

This commit is contained in:
Schuyler Cebulskie
2016-09-27 18:50:01 -04:00
parent 8d18ed42f6
commit b6c26cc2ae
9 changed files with 39 additions and 39 deletions

View File

@@ -53,7 +53,7 @@ class VoiceChannel extends GuildChannel {
* // set the bitrate of a voice channel
* voiceChannel.setBitrate(48000)
* .then(vc => console.log(`Set bitrate to ${vc.bitrate} for ${vc.name}`))
* .catch(console.log);
* .catch(console.error);
*/
setBitrate(bitrate) {
return this.rest.client.rest.methods.updateChannel(this, { bitrate });
@@ -66,7 +66,7 @@ class VoiceChannel extends GuildChannel {
* // join a voice channel
* voiceChannel.join()
* .then(connection => console.log('Connected!'))
* .catch(console.log);
* .catch(console.error);
*/
join() {
return this.client.voice.joinChannel(this);