Releases: Top-gg-Community/python-sdk
Releases · Top-gg-Community/python-sdk
Webhook event types update
Ratelimiter issues fix
-
Introduced global ratelimiter to follow Top.gg global ratelimits
-
Fixed an
AttributeErrorraised byHTTPClient.request -
Resource-specific ratelimit is now actually resource-specific instead of global
-
v1.2.0
Data models introduction
- Introduced data models
DBLClient.get_bot_votesnow returns a list ofBriefUserDataobjectsDBLClient.get_bot_infonow returns aBotDataobjectDBLClient.get_guild_countnow returnsBotStatsDataDBLClient.get_user_infonow returnsUserData
WebhookManager.runnow returns anasyncio.Task, meaning it can now be optionally awaited
WebhookManager property change
WebhookManager.webserver now instead returns aiohttp.web.Application for ease of use.
v1.0.0
- Renamed the module folder from
dbltotopgg - Added
post_shard_countargument toDBLClient.post_guild_count - Autopost now supports automatic shard posting
- Large webhook system rework
- Added support for server webhooks
- Webhook is now managed via new WebhookManager class
- Renamed
DBLExceptiontoTopGGException - Renamed
DBLClient.get_bot_upvotes()toDBLClient.get_bot_votes - Added
DBLClient.generate_widgetalong with thewidgetssection in the documentation - Implemented a properly working ratelimiter
- Added
on_autopost_error - All autopost events now follow
on_autopost_xnaming format, e.g.on_autopost_error,on_autopost_success - Added handlers for autopost args set when autopost is disabled
Bug fixes, new features, etc.
Clientnow hasautopostkwarg that will post server count automatically every 30 minutes- Fixed code 403 errors
- Added
on_dbl_vote, an event that is called when you test your webhook - Added
on_dbl_test, an event that is called when someone tests your webhook - Added webhook
- Made
get_weekend_status()return a boolean value
Bug fixes and improvements
v0.1.6 bug fixes and improvements
Initial ratelimit handling
v0.1.4 Update README.rst
Initial docs
Added documentation.