chore(*): update node version mention & use strict

This commit is contained in:
iCrawl
2020-02-29 15:19:37 +01:00
parent d33fc741e3
commit b58813ace8
8 changed files with 15 additions and 6 deletions

View File

@@ -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`

View File

@@ -1,3 +1,5 @@
'use strict';
/**
* Send a user a link to their avatar
*/

View File

@@ -1,3 +1,5 @@
'use strict';
/**
* A bot that welcomes new guild members when they join
*/

View File

@@ -1,3 +1,5 @@
'use strict';
/**
* A ping pong bot, whenever you send "ping", it replies "pong".
*/

View File

@@ -1,3 +1,5 @@
'use strict';
/**
* Send a message using a webhook
*/

View File

@@ -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?

View File

@@ -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.

View File

@@ -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`