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

261
Views
discord.js v13 No se puede enviar un mensaje a todos los miembros en el mismo vc (excepto los bots y el host)

Estoy tratando de hacer un juego similar al conocido juego Mafia/werewolf y solo necesito que el bot envíe un texto específico (mafia) a un número específico de usuarios en el VC y el resto quiero que reciban el mismo mensaje ( bueno). Sin embargo, no quiero que los (asesinos) vuelvan a recibir el (buen) mensaje.

 client.on("message", (msg) => { if (msg.content.startsWith(prefix + "Game")) { if (!msg.channel.guild) return; let channel = msg.member.voiceChannel; let toCheck = channel.members; let random1 = toCheck.random(); let randomE = toCheck.random(); random1.send("killer"); msg.channel.send(`${random1} killer`); randomE.send("good"); msg.channel.send(`${randomE} good`); } });
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!