Skip to content

v1.1.0

Compare
Choose a tag to compare
@Defxult Defxult released this 29 Jan 14:44
· 39 commits to main since this release
48d422d

Library Change

  • With the discontinuation of discord.py, this library is now dependent on pycord

New Features

  • Added LevelUpAnnouncement.Member.display_avatar_url. Used to access member avatars that are guild specific
  • Added LevelUpAnnouncement.Member.banner_url. Used to access member banners
  • Added the ability to get the total amount of XP needed for a level
    • DiscordLevelingSystem.get_xp_for_level(level: int)
  • Added the ability to limit the amount of records returned from a member data query
    • DiscordLevelingSystem.each_member_data(..., limit: Optional[int] = None)
  • Added the ability to get the next level for a member
    • DiscordLevelingSystem.next_level(member: discord.Member)
  • Added the ability to get the dict that represents the leveling systems level/XP requirement process
    • DiscordLevelingSystem.levels_and_xp()

Miscellaneous

  • Added __repr__ to the DiscordLevelingSystem.Bonus class
  • Added __all__ for the library itself (from discordLevelingSystem import *)
  • Added more typing.Optional for parameters. Implemented the use of typing.ClassVar and collections.abc.Sequence. A handful of parameters that specified a List[x] never really needed to be a list. All parameters that specified a List[x] has been changed to Sequence[x], but parameters that still require a list are still type hinted as List[x]