Discord-oauth2-py

Latest version: v1.0.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.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!

0.4beta

- Added `webhook` property to `access_token`, will be a [webhook object](https://discord.com/developers/docs/resources/webhook#webhook-object) if the `webhook` scope is provided otherwise it will be `None`.
- Added `guild` property to `access_token`, will be a [guild object](https://discord.com/developers/docs/resources/guild#guild-object) that the bot joined if the `bot` scope was provided otherwise it will be `None`
- `Exception` is raised if an HTTP error occurs in `discordoauth2.exchange_code` or `discordoauth2.refresh_token`

_No code should break this release, but it may next release._

0.3beta

- 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 a `access_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 a `token_instance` object)
- `expires`: how many seconds until `access` will expire.
- `refresh_token`: this can be used with `refresh_token()` once `access` has expired

0.2alpha.1

Changed core structure to use classes instead. Code much cleaner.

0.1alpha.2

First build, this was created a month ago but publishing today. It works but the code is clunky.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.