how to check if a user is in a guild or not discord.js code example
Example: discord.js check if member is in server
// guild = server
let guild = client.guilds.get('guild ID here'),
USER_ID = '123123123';
if (guild.member(USER_ID)) {
// there is a member in this guild with that ID
}