From b58813ace8bb440466bdc905251c04524c98e401 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Sat, 29 Feb 2020 15:19:37 +0100 Subject: [PATCH] chore(*): update node version mention & use strict --- README.md | 2 +- docs/examples/avatars.js | 2 ++ docs/examples/greeting.js | 2 ++ docs/examples/ping.js | 2 ++ docs/examples/webhook.js | 2 ++ docs/general/faq.md | 2 +- docs/general/updating.md | 4 ++++ docs/general/welcome.md | 5 +---- 8 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fe534e744..37e8d89ff 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to ## Installation -**Node.js 11.0.0 or newer is required.** +**Node.js 12.0.0 or newer is required.** Ignore any warnings about unmet peer dependencies, as they're all optional. Without voice support: `npm install discordjs/discord.js` diff --git a/docs/examples/avatars.js b/docs/examples/avatars.js index 136fd2e9d..57972f57e 100644 --- a/docs/examples/avatars.js +++ b/docs/examples/avatars.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Send a user a link to their avatar */ diff --git a/docs/examples/greeting.js b/docs/examples/greeting.js index 314a75986..f61b1c5fe 100644 --- a/docs/examples/greeting.js +++ b/docs/examples/greeting.js @@ -1,3 +1,5 @@ +'use strict'; + /** * A bot that welcomes new guild members when they join */ diff --git a/docs/examples/ping.js b/docs/examples/ping.js index 1b14332de..55888e888 100644 --- a/docs/examples/ping.js +++ b/docs/examples/ping.js @@ -1,3 +1,5 @@ +'use strict'; + /** * A ping pong bot, whenever you send "ping", it replies "pong". */ diff --git a/docs/examples/webhook.js b/docs/examples/webhook.js index 77f58c448..451ac58b3 100644 --- a/docs/examples/webhook.js +++ b/docs/examples/webhook.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Send a message using a webhook */ diff --git a/docs/general/faq.md b/docs/general/faq.md index b08358906..e265f81c1 100644 --- a/docs/general/faq.md +++ b/docs/general/faq.md @@ -4,7 +4,7 @@ These questions are some of the most frequently asked. ## No matter what, I get `SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode`‽ -Update to Node.js 11.0.0 or newer. +Update to Node.js 12.0.0 or newer. ## How do I get voice working? diff --git a/docs/general/updating.md b/docs/general/updating.md index 9c7cff425..ab9e67437 100644 --- a/docs/general/updating.md +++ b/docs/general/updating.md @@ -1,3 +1,7 @@ +# Version 12.0.0 + +TBD + # Version 11.1.0 v11.1.0 features improved voice and gateway stability, as well as support for new features such as audit logs and searching for messages. diff --git a/docs/general/welcome.md b/docs/general/welcome.md index b3168194c..cf64f0c09 100644 --- a/docs/general/welcome.md +++ b/docs/general/welcome.md @@ -21,9 +21,6 @@ Welcome to the discord.js v12 documentation. -v12 is still very much a work-in-progress, as we're aiming to make it the best it can possibly be before releasing. -Only use it if you are fond of living life on the bleeding edge. - ## About discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to easily interact with the @@ -36,7 +33,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to ## Installation -**Node.js 11.0.0 or newer is required.** +**Node.js 12.0.0 or newer is required.** Ignore any warnings about unmet peer dependencies, as they're all optional. Without voice support: `npm install discordjs/discord.js`