N
N
nikkkushkaaa2021-11-29 06:40:02
JavaScript
nikkkushkaaa, 2021-11-29 06:40:02

Why are some users undefined?

Hello. My Discord bot doesn't see some users. It writes undefined
to the console . On some users, it collects information in the console, and on some it writes: undefined .
How to fix? please tell
me discord js v12

firstNumber = args[1];
  if (!firstNumber) return message.reply("Укажи ID");
      const Guild1 = robot.guilds.cache.get('516357819864186881')
            const user = Guild1.members.cache.get(firstNumber);
            console.log(user)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question