Releases: treeben77/discord-oauth2.py
Releases · treeben77/discord-oauth2.py
v1.2.1
v1.2.0 - URI Generator
Added URI Generator
- Added
Client.uri_generator
which 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, andmetadata
is a keyword args mapping metadata keys to values, accepting the types:bool
,int
,datetime
or 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
webhook
property toaccess_token
, will be a webhook object if thewebhook
scope is provided otherwise it will beNone
. - Added
guild
property toaccess_token
, will be a guild object that the bot joined if thebot
scope was provided otherwise it will beNone
Exception
is raised if an HTTP error occurs indiscordoauth2.exchange_code
ordiscordoauth2.refresh_token
No code should break this release, but it may next release.
v0.3-beta
- Added
guilds.members.read
support - Added
refresh_token()
, the ability to refresh an access token. - Removed
gdm.join
as it is no longer supported by discord exchange_code()
now returns aaccess_token
object. (this will break all code using an older version)
Access tokens have three properties:
access
:token_instance
object (exchange_code()
used to return atoken_instance
object)expires
: how many seconds untilaccess
will expire.refresh_token
: this can be used withrefresh_token()
onceaccess
has 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.