mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
@@ -5,10 +5,12 @@
|
||||
*/
|
||||
|
||||
// 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();
|
||||
// Note: you __MUST__ have the GUILD_MEMBERS intent toggled on the dashboard
|
||||
// see https://discordjs.guide/popular-topics/intents.html for more
|
||||
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS] });
|
||||
|
||||
/**
|
||||
* The ready event is vital, it means that only _after_ this will your bot start reacting to information
|
||||
|
||||
Reference in New Issue
Block a user