He probado esto que es un copiar y pegar de otro de mis bots
const client = new Discord.Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_PRESENCES, ], })Error:
ReferenceError: Intents is not definedSimplemente, debe definir los Intents haciendo esto:
const { Client, Intents } = require('discord.js') Editar: no necesita usar Discord en discord.js v13 ya que no es necesario, en su lugar, hágalo así:
const { Client, Intents } = require('discord.js') const client = new Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_PRESENCES, ], })