discord api
How to get information whether a person has discord nitro on his account?
5 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!Not possible through bot api, but i guess you can check for user banner (or animated avatar) since only nitro users can have those. But not everyone with nitro have those so not fool proof. You can do through OAuth2 (with identify scope i believe), but that would be out of scope for this channel
@NyR how to get information that a person has a banner?
You get the user or the member and see if he as a banner
:property: User#banner
@14.15.2
The user banner's hash The user must be force fetched for this property to be present or be updated
:class: UserFlagsBitField @14.15.2
Data structure that makes it easy to interact with a flags bitfield.