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

149
Views
Cómo cambiar el estado de discord bot node.js

Quiero cambiar las estadísticas de mi bot de Discord de en línea a algo como idle o dnd .

Esto es lo que he intentado hasta ahora que no ha funcionado:

 client.on("ready", () => { client.user.setStatus('dnd'), client.user.setActivity('CrashGaming', { type: "WATCHING"}).catch(console.error) });
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Estás usando una coma, elimina la coma. Espero que funcione

 client.on("ready", () => { client.user.setStatus('dnd') // remove comma from here client.user.setActivity('CrashGaming', { type: "WATCHING"}).catch(console.error) });

Déjame saber si funciona.

about 4 years ago · Juan Pablo Isaza Report

0

Si usa discord.js v14, deberá usar las enumeraciones o números de ActivityType .

Puedes importarlo desde discord.js :

 const { ActivityType, Client, GatewayIntentBits, } = require('discord.js');

Y utilízalo así:

 client.on('ready', () => { client.user.setStatus('dnd'); client.user.setActivity('CrashGaming', { type: ActivityType.Watching }); });

Lista de ActivityType s que puedes usar:

v13 v14 valor v14
"PLAYING" ActivityType.Playing 0
"STREAMING" ActivityType.Streaming 1
"LISTENING" ActivityType.Listening 2
"WATCHING" ActivityType.Watching 3
"COMPETING" ActivityType.Competing 5
about 4 years ago · Juan Pablo Isaza Report
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!