User client(desktop client/browser/mobile)
How can I get the user's device
9 Replies
- What's your exact discord.js
npm list discord.js and node node -v version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!1. You need the privilege
GUILD_PRESENCES
2. Example Code
Important Considerations
* Offline Users: If a user is offline or has set their status to invisible, their presence will be null, and you won't be able to determine their device.
* Multiple Devices: A user can be logged in on multiple devices at the same time. The clientStatus object will reflect all active sessions.
* Intents are Crucial: Remember to enable the GUILD_PRESENCES intent for your bot. If you don't, presence will always be null for members.Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
1. What makes you say that the question was solved? Afaik the question isn't resolved.
2. It's partially AI-generated, but the answer is still correct. Why shouldn't I use AI?
bro stop using ai pls
#how-to-give-help first bullet point
ai uses outdated data, gives incorrect answers most of the time and spoonfeeding isnt helping at all
just dont, read how to give help channel
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View