Discord-hero

Latest version: v0.1.0b8

Safety actively analyzes 621892 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.0beta.8

- Add hero.errors.ResponseTookTooLong, which is
normally handled automatically by on_command_error,
and also add a force_response parameter to
wait_for_response and related methods that will
make these methods return None instead of
stopping the command from continuing
- Add DiscordModel.discord, exposing the wrapped Discord object
- Make EmojiField and ManyEmojisField reverse cascade
(can be disabled with `reverse_cascade=False`)
- Add SeparatedValuesField.converter and .serializer to
allow for more flexible list-like fields
- Model instance ForeignKey attribute access now can (and has to)
be awaited if in an async context (i.e. in `async` functions but not
in `async_using_db` functions!) (this previously just raised
SynchronousOnlyOperation)
Example:
`guild = await text_channel.guild`
- Add optional Model.NOT_FOUND_MESSAGE class attribute;
this allows customizing of error messages that are sent in
production mode when an object could not be found in the
database (such errors will still be logged and should be fixed
by the developer, but at least users have an idea of what's going on)

0.1.0beta.7

- Add AsyncUsingDB.sync, allowing you to use functions decorated with `hero.async_using_db` synchronously

0.1.0beta.6

- Fix issues with Extension loading, command group resolving, and GDPR
- Deprecate Database.load
- Use Database.wrap_{} methods instead

0.1.0beta.5

Fix setup.py

0.1.0beta.4

Releases will be tagged from now on and releases to PyPI are now automated via GitHub Actions.

This release might turn into the first release candidate if it keeps being as stable as it seems to be.

0.1.0beta

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.