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

111
Vistas
Attempt to get guild member always errors

So I'm creating a third-party to discord verification bot, and all of it works, except for when I try to access the guild member. The third-party sends all the data back to the bot, but for some reason, (and all the information is correct), it doesn't allow me to get the guild member, (via their discord id), and change their nickname.

Here's the code, and any help is appreciated!

let Mem = message.guild.members.cache.find(Member => Member.id === String(message.content.split(' ')[0]));

Mem.setNickname(message.content.split(' ')[1]);

I've tried (what I think) is all of the ways to access the guild member, but none of them work. The id is valid, which is why it's even more confusing. Thanks in advance!

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

You aren't allowed to access the whole server list by default. You need discord GUILD_MEMBERS intent, and also make sure to enable Server Members Intent in the website Discord Developer > Your Bot > Bot > Privileged Gateway Intents > Server Members Intent

about 4 years ago · Santiago Gelvez 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