discord.js fetch members code example
Example 1: discord bot presence
client.on('ready', () => {
console.log(`${client.user.tag}` + ' is Up & Working')
client.user.setActivity(prefix + 'Help ')});
// This Will Show Playing : !Help or WhatEver You Want//
Example 2: discord js fetch user
//With .then
<client>.users.fetch('UserID').then((user) => {
console.log(user);
}).catch(console.error);
//with async/await
const user = await <client>.users.fetch('UserID').catch(console.error);
console.log(user);