mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Make docs catches use console.error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user