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
AttributeError
raised 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_votes
now returns a list ofBriefUserData
objectsDBLClient.get_bot_info
now returns aBotData
objectDBLClient.get_guild_count
now returnsBotStatsData
DBLClient.get_user_info
now returnsUserData
WebhookManager.run
now 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
dbl
totopgg
- Added
post_shard_count
argument 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
DBLException
toTopGGException
- Renamed
DBLClient.get_bot_upvotes()
toDBLClient.get_bot_votes
- Added
DBLClient.generate_widget
along with thewidgets
section in the documentation - Implemented a properly working ratelimiter
- Added
on_autopost_error
- All autopost events now follow
on_autopost_x
naming format, e.g.on_autopost_error
,on_autopost_success
- Added handlers for autopost args set when autopost is disabled
Bug fixes, new features, etc.
Client
now hasautopost
kwarg 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.