E
E
Evgeny Fedotov2021-02-07 14:40:03
Node.js
Evgeny Fedotov, 2021-02-07 14:40:03

How to check the user on the server?

How to check if there is a user on the server or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-07
@Benji888

let guild = client.guilds.cache.get('ID_сервера'),
  user_id = 'id_пользователя';

if (guild.member(user_id)) {
  // пользователь существует
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question