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

159
Vistas
DiscordJS cannot read properties of null (reading 'status')

I have a user command and I implemented a field that shows the users status, dnd, idle and online works fine and if the user appears offline it works fine but if the user is actually offline it gives the error cannot read properties of null (reading 'status')

Code:

        const statusTypes = {
            online: '<:online:313956277808005120> Online',
            idle: '<:away:313956277220802560> Idle',
            dnd: '<:dnd:313956276893646850> Do Not Disturb',
            offline: '<:offline:313956277237710868> Offline'
        };
        // embed field
                {
                    name: 'Status',
                    value: `${statusTypes[member.presence.status]}`,
                    inline: true
                },
about 4 years ago · Juan Pablo Isaza
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