discord api

How to get information whether a person has discord nitro on his account?
5 Replies
d.js toolkit
d.js toolkit8mo ago
- 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!
NyR
NyR8mo ago
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
dimon1936
dimon1936OP8mo ago
@NyR how to get information that a person has a banner?
axiprime
axiprime8mo ago
You get the user or the member and see if he as a banner
d.js docs
d.js docs8mo ago
: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.
Want results from more Discord servers?
Add your server