Top-gg-Community / python-sdk

A simple API wrapper for top.gg written in Python
https://docs.top.gg/docs/Libraries/python
MIT License
91 stars 54 forks source link

POSSIBLY BREAKING: better interfaces for non-d.py bots #60

Closed norinorin closed 2 years ago

norinorin commented 3 years ago

We want to have a nice API for bots that aren't written with discord.py (or its derivatives). There are many good Python Discord API wrappers out there such as Hikari. Thus, I think it would be nice if we make the DBLClient library-independent by making it accept a callback that returns the bot stats instead for the auto poster—we might need to make our event emitter too if we do this. Another option would be documenting HTTPClient to provide lower-level interfaces for other Discord API wrappers—or even projects in general—since DBLClient only works with discord.py currently. And for the WebhookManager, perhaps we can provide a middleware just like how other SDK does?

martinbndr commented 3 years ago

Yes would be nice. Also would be great to remove the discord.py requirement as some already use other discord py forks.