Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

112
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda