Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

798
Vistas
setPresence activity type in discord.js v14 can only be set to "PLAYING"

When I try to set the status of the bot, I do not know the type, basically, there are 4 ways: PLAYING, WATCHING, LISTENING, and STREAMING. But I can't set anything else, I can only use the default PLAYING.

Am I inattentive or can't really be like that in the newer update?

client.user.setPresence({ activities: [{ name: `discord.js v14`, type: `WATCHING` }], status: 'dnd' })
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In v14, you will need to use the ActivityType enums or numbers.

You can import it from discord.js:

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

And use it like this:

client.user.setPresence({
  activities: [{ name: `discord.js v14`, type: ActivityType.Watching }],
  status: 'dnd',
});

List of ActivityTypes:

v13 v14 v14 value
"COMPETING" ActivityType.Competing 5
"LISTENING" ActivityType.Listening 2
"PLAYING" ActivityType.Playing 0
"STREAMING" ActivityType.Streaming 1
"WATCHING" ActivityType.Watching 3
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda