Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db!userinfo shows not a Nitro User, when i am one. #201

Closed
ROMVoid95 opened this issue Apr 24, 2019 · 5 comments
Closed

db!userinfo shows not a Nitro User, when i am one. #201

ROMVoid95 opened this issue Apr 24, 2019 · 5 comments

Comments

@ROMVoid95
Copy link

Describe the bug
db!userinfo command on myself shows Discord Nitro User as "No", however i am a Nitro user.
image of command and profile badge, can send Nitro page from profile if needed
https://imgur.com/ktg3KYy

To Reproduce
Steps to reproduce the behavior:

  1. Have Nitro (for me at least)
  2. perform db!userinfo w/ no args
  3. See error

Expected behavior
Unless there is a big api difference between Nitro and Nitro Classic (Early Supporter) it should show Yes in command

Screenshots
https://imgur.com/ktg3KYy

Additional context
The To Reproduce section i filled out may look sarcastic but its not i swear just following format :)

@duncte123
Copy link
Member

This is not a bug but a limitation from Discords end. Discord doesn't provide us with your nitro status so the only way for us to check if you are a nitro user is if you have a gif avatar.
If you want to force the display I suggest that you make a gif avatar via https://ezgif.com/ and set it to 2 of the same frames, once you've done that you have a gif avatar that looks like a png and the bot will display you as a nitro user.

@ROMVoid95
Copy link
Author

They must have just added it, or has not been implemented in JDA yet. Saw it in their documents now.

| premium_type? | integer | the type of Nitro subscription on a user's account | identify |

{
  "id": "80351110224678912",
  "username": "Nelly",
  "discriminator": "1337",
  "avatar": "8342729096ea3675442027381ff50dfe",
  "verified": true,
  "email": "[email protected]",
  "flags": 64,
  "premium_type": 1
}

Thanks for the reply!

@duncte123
Copy link
Member

duncte123 commented Apr 24, 2019

That is not available to the bot API unfortunately, the bot API only receives the id, username, discriminator and the avatar.

This can only be used via the OAuth API, the dashboard uses the OAuth API for example.

@duncte123
Copy link
Member

Here is a real-world example that shows all the data with a fetch user request from discord https://documenter.getpostman.com/view/3863890/S1EWNaDW

@ROMVoid95
Copy link
Author

yep just missed the identify part of REQUIRED OAUTH2 SCOPE. sorry to waste your time. thanks for the info too!

@duncte123 duncte123 reopened this Jan 20, 2020
@duncte123 duncte123 pinned this issue Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants