Answers for "how to check if a user is in a guild discord.js"

0

how to check if the user is in a certain guild in discord

const server = client.guilds.cache.get(server_id)
if (server.members.cache.find(user_id)) //Returns true if present in the guild
else //and false if not
Posted by: Guest on June-21-2020
0

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>
Posted by: Guest on June-04-2021

Code answers related to "how to check if a user is in a guild discord.js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language