Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
El bot de Discord no está en la lista de miembros sino en línea

Estoy tratando de iniciar mi primer bot de Discord. Instalé NodeJS en mi PC, inicié la aplicación en las herramientas de desarrollo de Discord, lo convertí en bot, obtuve token, seleccioné privilegios, agregué bot a mi servidor. En realidad, otro bot ya he enviado un mensaje de bienvenida diciendo que mi nuevo bot se unió al servidor. Cuando lo inicio usando el comando "node main.js", dice que se conectó, no da ningún error, sin embargo, mi bot no aparece en la lista de miembros (ni fuera de línea ni en línea) y no reacciona a los mensajes con su prefijo. Aquí está mi código main.js:

 const Discord = require('discord.js'); const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); const prefix = '='; 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 === 'status') { console.log(command); message.channel.send('Bot dziala poprawnie.'); } } ); client.once('ready', () => { console.log('GuruBot online'); }); client.login('my_token_is_here');```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!