Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.67k stars 3.74k forks source link

Add a user has nitro option #1777

Closed MrKioZ closed 5 years ago

MrKioZ commented 5 years ago

i think what is missing to check if the user has nitro subsribtion or have early supporter and the brilliance badges

Gorialis commented 5 years ago

The Discord API does not expose this information to regular bot accounts and so, it is not possible to get this information through the library when using a Discord bot account (as there is no method of obtaining it).

When using the rewrite branch, userbots can use Client.get_user_profile and from there use Profile.nitro to determine if a user has nitro or not. The other mentioned flags are also documented under the discord.Profile category.