get guild member by id discord.js code example
Example 1: discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
Example 2: discord.js get server guild id
let server = message.guild.id, // ID of the guild the message was sent in
channel = message.channel.id // ID of the channel the message was sent in