How would I get a member from a different server that the client isn't in? For example, say I wanted to see if a member has a specific permission in a different server.
Unfortunately that is impossible
However, to get the permission of a user in a guild the bot is in, you would use:
client.guilds.cache.get(guildID).members.cache.get(userID).hasPermission(permission) // example permissions enclude: MANAGE_SERVER, MANAGE_EMOJIS, etc.
// returns boolean
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.