Reputation: 35
How do i get a user that not shares a guild with my bot in discord.js?
I already googled and found no awnser
Upvotes: 0
Views: 233
Reputation: 2208
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 })
Upvotes: 2