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

@@ -5,10 +5,10 @@
*/
// Import the discord.js module
const Discord = require('discord.js');
const { Client, Intents } = require('discord.js');
// Create an instance of a Discord client
const client = new Discord.Client();
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
/**
* The ready event is vital, it means that only _after_ this will your bot start reacting to information