From e35ceed83644d982a4782ee9c67a27a1ca076daf Mon Sep 17 00:00:00 2001 From: Idris <78701338+Idris1401@users.noreply.github.com> Date: Sun, 9 Oct 2022 16:56:10 +0200 Subject: [PATCH] chore: update README.md Change the way to get all intents for not having to update every time. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0c7a92f..9478a0a 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ npm i modmail.djs@latest ## Example ```JS const { Manager } = require('modmail.djs'); -const { Client, Partials } = require('discord.js'); +const { Client, GatewayIntentBits, Partials } = require('discord.js'); const client = new Client({ - intents: 3276799, // all intents + intents: Object.keys(GatewayIntentBits), // all intents partials: [Partials.Message, Partials.Channel, Partials.Reaction] }); @@ -33,10 +33,10 @@ client.login(''); #### ES6 : ```JS import { Manager } from 'modmail.djs'; -import { Client, Partials } from 'discord.js'; +import { Client, GatewayIntentBits, Partials } from 'discord.js'; const client = new Client({ - intents: 3276799, // all intents + intents: Object.keys(GatewayIntentBits), // all intents partials: [Partials.Message, Partials.Channel, Partials.Reaction] }); @@ -52,4 +52,4 @@ client.once('ready', () => { }); client.login(''); -``` \ No newline at end of file +```