Ezcord Versions Save

An easy-to-use extension for Discord.py and Pycord

v0.6.2

1 month ago

This is a bug fix release

  • Added localization for embed lists
  • Fixed embed templates when i18n is disabled
  • Fixed modal values not being localized
  • Fixed count parameter for interaction responses
  • Fixed global variables if language file doesn't contain a general key

v0.6.1

2 months ago

This release fixes compatibility with older versions of Pycord that are missing the interaction.respond attribute.

v0.6.0

2 months ago

i18n (#58)

  • Added localization for slash commands
  • Added localizations for messages, embeds, views, modals and more

Other changes

  • EzCord can now be used without a Discord library, as some features like DBHandler do not require Discord (#62)
  • Added contribution guide to docs (#63)
  • Added utils.load_message (#59)
  • Fixed status changer variables
  • Disabled guild_only for the help command by default

New contributors

  • @mvlwarekekw made their first contribution in #59

v0.5.3

3 months ago

Updates

  • Added support for Python 3.12
  • Added DBHandler.executemany
  • The help command will now show all commands by default, with the option to turn on permission checks

Bugs

  • Fixed latency overflow error in on_ready print
  • Ignore ErrorMessageSent error in components
  • Fixed type hints for bot.add_status_changer
  • Fixed command name display when command mention is not available
  • Fixed plural localization
  • Added missing NotOwner check to the error handler

v0.5.2

4 months ago

Dynamic Language (#47)

  • Added multi-language support: Set the language to auto to automatically use the interaction locale
  • Provide a default_language if the interaction locale is not available

Improvements

  • Added utils.count_lines
  • Added bot.cmd_count property
  • Added more template variables for embeds that were previously only available in the status changer (#42)
  • Added custom variable support for the help command (#48)
  • Added month detection for utils.convert_to_seconds
  • Blacklist commands are now customizable and can be disabled (#41)

Fixes

  • Fixed help command in DMs when a command had default permissions set
  • Fixed database type of dt when using blacklist.get_full_bans
    • Note: This does not automatically change if you already have an active blacklist database (#44)
  • Fixed interaction responses for blacklist commands
  • Fixed missing key error for custom language files
  • Fixed conv_json and foreign_keys for single DB connections

v0.5.1

4 months ago

Changes

  • Added fill parameter for DBHandler.one
  • Help command categories are now sorted alphabetically
  • Slightly changed default error messages
  • Custom language files can now contain single key-value pairs
  • Activities in bot.add_status_changer can now be passed without a list

Bug Fixes

  • Fixed type hints for ezcord.EzContext and ezcord.Bot
  • Fix Unexpected parameter warning for embed templates
  • Fixed CheckFailure error handling
  • Fixed offset-naive datetimes for times.convert_dt
  • Fixed command groups and checks for discord.py help command
  • [Upstream] Pycord fixed disable_on_timeout for ephemeral messages, Ezcord will now prevent NotFound errors when a non-ephemeral message has been deleted.

v0.5.0

5 months ago

Discord.py

  • EzCord now officially supports Discord.py!

Pycord Context

  • Added EzContext (Pycord only)
  • Embed templates can now be used directly with the context in application commands

Other changes

  • CheckFailure errors are now handled by the default error handler
  • Added ErrorMessageSent exception to simplify error messages for users
  • The setup method in DBHandler classes is now called for each instance
  • Changed the default help command timeout to None
  • Fixed some rare help command edge cases
  • Embed templates can now be used with the content parameter

v0.4.1

6 months ago
  • Added blacklist feature
  • Added option to log to console and file simultaneously
  • Fixed cog description for help command categories
  • Fixed task import for status changer

v0.4.0

6 months ago

New features

  • Added status changer
  • Added utils.codeblock
  • Added utils.random_avatar
  • Added options for help command: show_cmd_count, permission_check

Databases

  • Added option to enforce foreign keys
  • Added option to autoconvert JSON data
  • Options can now be passed into the self.start context manager to override or extend class options
  • Added alias methods execute and connect
  • Renamed transaction to auto_connect to avoid confusion

Bug fixes and changes

  • Fixed auto_setup when creating a class instance in an on_ready event
  • Fixed auto_setup for multiple classes of the same type
  • If subdirectories=True in bot.load_cogs, subdirectories will now be loaded recursively
  • times.convert_to_seconds can now raise an error no valid string is given
  • Fixed a rare issue when creating internal config files. All config data is now stored in memory.
  • utils.create_json_file now accepts keyword arguments for json.dumps
  • Added EzcordException as a base exception class

v0.3.7

7 months ago

Changes

  • Added a context manager for database transactions
  • Fixed compatibility with Nextcord and other libraries

GitHub

  • Added a sample repository
  • Added CI checks to ensure compatibility with other Discord libraries (#9)