discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
check user by id discord js
if(!message.author.id ==`329023088517971969` || !message.member.hasPermission(['MANAGE_GUILD'])) return message.channel.send(`You don't have the permissions to do this!`)
<code here>
how to get id of the server discord js bot
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us