Skip to content

Releases: Top-gg-Community/python-sdk

Webhook event types update

09 Sep 15:13
Compare
Choose a tag to compare
  • The type of data passed to on_dbl_vote has been changed from dict to BotVoteData
  • The type of data passed to on_dsl_vote has been changed from dict to ServerVoteData

Ratelimiter issues fix

30 Jun 22:09
Compare
Choose a tag to compare

v1.2.0

28 Jun 10:17
Compare
Choose a tag to compare
  • Introduced global ratelimiter along with bot endpoints ratelimiter
  • Added dark theme extension to documentation along with according CSS
  • Fixed #55

Data models introduction

24 May 08:53
Compare
Choose a tag to compare
  • Introduced data models
    • DBLClient.get_bot_votes now returns a list of BriefUserData objects
    • DBLClient.get_bot_info now returns a BotData object
    • DBLClient.get_guild_count now returns BotStatsData
    • DBLClient.get_user_info now returns UserData
  • WebhookManager.run now returns an asyncio.Task, meaning it can now be optionally awaited

WebhookManager property change

01 May 20:44
Compare
Choose a tag to compare

WebhookManager.webserver now instead returns aiohttp.web.Application for ease of use.

v1.0.0

01 May 14:10
Compare
Choose a tag to compare
  • Renamed the module folder from dbl to topgg
  • Added post_shard_count argument to DBLClient.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 to TopGGException
  • Renamed DBLClient.get_bot_upvotes() to DBLClient.get_bot_votes
  • Added DBLClient.generate_widget along with the widgets 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.

19 May 16:51
Compare
Choose a tag to compare
  • Client now has autopost 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

13 Mar 18:38
Compare
Choose a tag to compare
v0.1.6

bug fixes and improvements

Initial ratelimit handling

19 Feb 22:36
e09376b
Compare
Choose a tag to compare
v0.1.4

Update README.rst

Initial docs

10 Feb 09:03
Compare
Choose a tag to compare

Added documentation.