const Discord = require("discord.js"); const client = new Discord.Client({ ws: { intents: new Discord.Intents(Discord.Intents.ALL) } });este es un código que requiere todas las intenciones, ¿está mal?
client.once('ready', () => { console.log('Coleria is online!'); }); const prefix = '*'puedo ir con este prefijo
client.on("message", message =>{ if(!message.content.startsWith(prefix) || message.author.bot) return; const args = message.content.slice(prefix.length).split(" "); const command = args.shift().toLowerCase(); if(command === 'sa'){ messageCreate.channel.send('As kardeşim hoşgeldin.'); } }); client.login("my token");No deberías usar ws: { intents: new Discord.Intents(Discord.Intents.ALL)}
const client = new Discord.Client({ intents: [ Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES ] }); Debe usar este código porque su bot está tratando de encontrar los indicadores GUILDS y GUILD_MESSAGES , y eso es todo lo que necesita usar.