Skip to content

refactor: adapt package to support the new format of the api#24

Merged
ValDesign22 merged 9 commits intomasterfrom
feat/self-hosted-instances-support
Apr 18, 2026
Merged

refactor: adapt package to support the new format of the api#24
ValDesign22 merged 9 commits intomasterfrom
feat/self-hosted-instances-support

Conversation

@ValDesign22
Copy link
Copy Markdown
Member

This pull request updates the discordanalytics package to version 3.7.0 and introduces a new types.py module containing data classes for analytics types. The main focus is on improving type safety and organization by defining structured types for statistics and analytics data.

New analytics types and data structures:

  • Added a new discordanalytics/types.py file defining data classes such as GuildStat, GuildMembers, LocaleStat, InteractionStat, UsersType, and Stats to provide structured representations of analytics data.
  • Introduced the CustomEvents type alias for mapping custom event names to counts.

Package and import updates:

  • Updated the package version to 3.7.0 in both discordanalytics/__init__.py and pyproject.toml.
  • Updated discordanalytics/__init__.py to import all types from the new types.py module.

@ValDesign22 ValDesign22 self-assigned this Apr 17, 2026
@ValDesign22 ValDesign22 added the enhancement New feature or request label Apr 17, 2026
@discord-analytics-huly
Copy link
Copy Markdown

Connected to Huly®: DA-1269

@ValDesign22 ValDesign22 merged commit 72f6225 into master Apr 18, 2026
@ValDesign22 ValDesign22 deleted the feat/self-hosted-instances-support branch April 18, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants