discord bot check if user in server 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
}