check if id is a bot discord.js code example
Example 1: discord.js bot
//first you must install dicord.js by running the command: npm install discord.js
//once u do that copy and paste this into your main file
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () =>{
client.user.setStatus('your status')
console.log('Connected!')
})
//rest of your code
//always remember to never share your token with anyone
client.login('your-token-here')
Example 2: 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
}