Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
Change the way to get all intents for not having to update every time.
  • Loading branch information
Idris1401 committed Oct 9, 2022
1 parent f5c1e5a commit e35ceed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
});

Expand All @@ -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]
});

Expand All @@ -52,4 +52,4 @@ client.once('ready', () => {
});

client.login('');
```
```

0 comments on commit e35ceed

Please sign in to comment.