docs: update docs and examples for #4879 (#5323)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
Carter
2021-03-28 21:51:42 -06:00
committed by GitHub
parent 624a4464ca
commit 685b2604e4
18 changed files with 56 additions and 58 deletions

View File

@@ -1,9 +1,11 @@
'use strict';
const { token, guildId, channelId, messageId } = require('./auth.js');
const { Client, ReactionCollector } = require('../src');
const { Client, Intents, ReactionCollector } = require('../src');
const client = new Client();
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS],
});
client.on('ready', async () => {
const guild = client.guilds.cache.get(guildId);