Skip to content

Commit

Permalink
chore: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Aug 5, 2021
1 parent f473f43 commit a56ba09
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 300 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to

## Installation

**Node.js 14.6.0 or newer is required.**
**Node.js 16.6.0 or newer is required.**

```sh-session
npm install discord.js
Expand Down Expand Up @@ -72,7 +72,7 @@ const rest = new REST({ version: '9' }).setToken('token');
Afterwards we can create a quite simple example bot:
```js
const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
Expand Down
Loading

2 comments on commit a56ba09

@ZakharYA
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this sharp rise of the node.js engine to 16.6.0?

@MattIPv4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node 16 becomes active LTS in roughly two months. Requiring Node 16 as part of the v13 major release avoids the need for another major release of Discord.js to bump to Node 16 in two months time. Plus, y'know, using Node 16 features.

Please sign in to comment.