Make docs catches use console.error

This commit is contained in:
Schuyler Cebulskie
2016-10-26 21:37:19 -04:00
parent d6f4a4e1a0
commit ab6750d06d
4 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ class WebhookClient extends Webhook {
* @example
* // create a new webhook and send a message
* let hook = new Discord.WebhookClient('1234', 'abcdef')
* hook.sendMessage('This will send a message').catch(console.log)
* hook.sendMessage('This will send a message').catch(console.error)
*/
constructor(id, token, options) {
super(null, id, token);

View File

@@ -212,7 +212,7 @@ class VoiceConnection extends EventEmitter {
* .then(connection => {
* const dispatcher = connection.playFile('C:/Users/Discord/Desktop/music.mp3');
* })
* .catch(console.log);
* .catch(console.error);
*/
playFile(file, options) {
return this.playStream(fs.createReadStream(file), options);
@@ -232,7 +232,7 @@ class VoiceConnection extends EventEmitter {
* const stream = ytdl('https://www.youtube.com/watch?v=XAWgeLF9EVQ', {filter : 'audioonly'});
* const dispatcher = connection.playStream(stream, streamOptions);
* })
* .catch(console.log);
* .catch(console.error);
*/
playStream(stream, { seek = 0, volume = 1, passes = 1 } = {}) {
const options = { seek, volume, passes };