Discord-Passport v0.1
Way to make simple Discord OAuth2
How it work?
+pip install discord-passport
Make the Auth
import discord_passport as dp
Oauth = dp.Oauth2(token="Bot Token",client_secret="Bot Client Secret ",client_id="Bot ID",redirect_uri="Oauth Redirect URL")
Oauth.OAuth2Code("Code from OAuth2Code")
print(Oauth.getUserAvatar) # Return AvatarLink
print(Oauth.getUserName) # Return Name Like iExi
print(Oauth.getUserDiscriminator) # Return Discriminator Like #0416
print(Oauth.getUserPremiumType) # Return PremiumTypeLike 0 1 2
"""
0:None
1:Discord Nitro Classic
2:Discord Nitro Gaming
"""
print(Oauth.getUserEmail) # Return Email like email@iexi.xyz
print(Oauth.getUserFlags) # https://discord.com/developers/docs/resources/user#user-object-user-flags
- Any Error Contact me : iExi#0416
- Or enter : Developer Support
Metadata
Release files for discord-passport 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| discord_passport-0.3.tar.gz | 3.2 kB | Details |
Release files / discord_passport-0.3.tar.gz
| Download URL | discord_passport-0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c059f155d6202fe34cdc93ecffa244525e2b8370a41fa223deb7220f8d0b1375
|
|
BLAKE2b-256 checksum How to use checksums |
4b68f01c968f326362cfe1dacd0a357dc767d8b8cf9f067a10bd4fda00c93ee5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|