edg-l /
discord.aio
An asynchronous Discord API wrapper for python
46/100 healthLoading repository data…
InviteManagerBot / repository
An asynchronous discord OAuth2 API wrapper.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A modern, easy to use discord OAuth2 API wrapper written in Python.
Python >3.8 is required.
You can run the following command to install the library:
$ pip install disco.oauth2
To install the development version (lastest), do the following:
$ pip install git+https://github.com/InviteManagerBot/disco.oauth2.git
from disco_oauth2 import Client
client = Client(
client_id=client_id_here,
client_secret="client_secret_here",
redirect_uri="redirect_uri_here",
scopes=["identify", "guilds", "email", "connections"],
)
async def main():
# Exchange a code received from the callback from the redirect url.
access_token = await client.exchange_code("my_code")
# Fetch user's information with access token.
user = await client.fetch_user(access_token)
# Fetch user's connections.
connections = await user.fetch_connections()
# Fetch guilds that the user is member of.
guilds = await user.fetch_guilds()
print(f"{user!r} | {connections!r}")
for guild in guilds:
print(f"`{user.name}` member of {guild!r}")
Optionally you may install the orjson libraries (highly recommended for sake of speed).
discord_oauth2 was written by martimartins martim13artins13@gmail.com, licensed under the MIT license.
All contributions are welcome ;)
Selected from shared topics, language and repository description—not editorial ratings.
edg-l /
An asynchronous Discord API wrapper for python
46/100 healthwalterwhite-69 /
An unofficial, high-performance Discord API wrapper and Discord Bot for Joyland AI. Bring Joyland AI to Discord! Features immersive webhook character roleplay, persistent stealth sessions, paginated search UIs, and asynchronous, high-speed API performance.
47/100 health