B0urg
B0urg

Reputation: 35

How to get a user not sharing a guild with? Discordjs

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

Answers (1)

MegaMix_Craft
MegaMix_Craft

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

Related Questions