Releases: treeben77/discord-oauth2.py
Releases · treeben77/discord-oauth2.py
v1.2.2
What's Changed
- Add async library support - @Paillat-dev in #8
- Add support for
integration_type- @zyrafaq in #9
New Contributors
Thank you to all these contributors that have made their first contributions since the last release!
- @EchterTimo made their first contribution in #7
- @Paillat-dev made their first contribution in #8
- @zyrafaq made their first contribution in #9
Full Changelog: v1.2.1...v1.2.2
v1.2.1
v1.2.0 - URI Generator
Added URI Generator
- Added
Client.uri_generatorwhich generates an OAuth2 uri from provided inputs request in #6 - View documentation
v1.1.0 - Linked Roles & Token Revocation
Changelog
Added Linked Roles Support
- Added
Client.update_linked_roles_metadata(metadata)which takes a list of application role connection metadata - Added
PartialAccessToken.update_metadata(platform_name=None, username=None, **metadata)platform name and username are strings, andmetadatais a keyword args mapping metadata keys to values, accepting the types:bool,int,datetimeor astr(only for iso time).
Added Token Revocation Support
- Added
PartialAccessToken.revoke()shorthand to revoke an access token. - Added
AccessToken.revoke_refresh_token()shorthand to revoke a refresh token. - Added
Client.revoke_token(token, token_type=None)to revoke any oauth2 token related to the client.
v1.0.1
v1.0.0
I rewrote the library and uploaded it a pypi!!!
added a new function for client_credentails_grant which will generate an AccessToken for the owners account and much more. I'll update the README.md in a moment.
This should automatically trigger a workflow to publish the library onto pypi if im not mistaken.
happy coding!
v0.4-beta
- Added
webhookproperty toaccess_token, will be a webhook object if thewebhookscope is provided otherwise it will beNone. - Added
guildproperty toaccess_token, will be a guild object that the bot joined if thebotscope was provided otherwise it will beNone Exceptionis raised if an HTTP error occurs indiscordoauth2.exchange_codeordiscordoauth2.refresh_token
No code should break this release, but it may next release.
v0.3-beta
- Added
guilds.members.readsupport - Added
refresh_token(), the ability to refresh an access token. - Removed
gdm.joinas it is no longer supported by discord exchange_code()now returns aaccess_tokenobject. (this will break all code using an older version)
Access tokens have three properties:
access:token_instanceobject (exchange_code()used to return atoken_instanceobject)expires: how many seconds untilaccesswill expire.refresh_token: this can be used withrefresh_token()onceaccesshas expired
v0.2-alpha.1
Changed core structure to use classes instead. Code much cleaner.
v0.1-alpha.2
First build, this was created a month ago but publishing today. It works but the code is clunky.