Home > other >  How to get a user not sharing a guild with? Discordjs
How to get a user not sharing a guild with? Discordjs

Time:06-19

How do i get a user that not shares a guild with my bot in discord.js?

I already googled and found no awnser

CodePudding user response:

To fetch/get a user that you don't share any guild with you can use Client.users.fetch() with parameter force set to true like in a code below:

let user = await client.users.fetch("ID", { force: true, cache: true })
  • Related