Enable some experimental features for discord.py.
Project description
discord-ext-alternatives
Enable some experimental features for discord.py.
⚠️ This is experimental and should be used with caution. If you encounter any issues with this extension, please make an issue.
Installation
This extension is on PyPI.
$ python3 -m pip install -U discord-ext-alternatives
Usage
from discord.ext.alternatives import asset_converter, message_eq
# Patches the related features into discord.py
# OR
from discord.ext.alternatives.class_commands import ClassGroup, Config
Available Experiments
asset_converter
- Implements a converter forAsset
.bot_send_help
- ImplementsBot.send_help
.guild_converter
- Implements a converter forGuild
.int_map
- Implements__int__
to return.id
.message_eq
- ImplementsMessage.__eq__
(Message == Message
).silent_delete
- Implements asilent
keyword argument forMessage.delete
.specific_error_handler
- Implements@Command.error(Exception)
.subcommand_error
- Implementsroot_parent
error handling.webhook_channel
- ImplementsWebhook.move_to
.
Standalone
class_command
- Implements a way to use classes and functions as commands.
Changelog
2020.05.20
- Fixed bug with
silent_delete
. - Added
guild_converter
. - Added
class_commands
.
2020.05.12
- Added
silent_delete
int_map
no longer errors onInvite.__int__
specific_error_handler
now works in cogs, and walks__mro__
to check exceptions.subcommand_error
no longer errors in Cog exception propagation.
2020.05.10
- Added
int_map
- Added
specific_error_handler
message_eq
checks for aMessage
instance
2020.05.09
- Added
asset_converter
- Added
bot_send_help
- Added
message_eq
- Added
subcommand_error
- Added
webhook_channel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discord-ext-alternatives-2020.5.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a7f037cbf45bcabf661d0406e9c325e857e581970efab8a56d200a2737750f |
|
MD5 | ba3e4232f0309b5e397a2858f38c0730 |
|
BLAKE2b-256 | f83877e7565b794daeeea500133e073f8743552f27cfbf6dafa43a0d09a18dd1 |
Close
Hashes for discord_ext_alternatives-2020.5.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f156952f8a44728f1db55be63a6ea9c55613772b37f727f7b1736a64c57a231 |
|
MD5 | e831a807eb7d5faf479950c4e537676e |
|
BLAKE2b-256 | a7e06a976f7e87b49fec155c1e7abe6d39ea023a09dd96358e5985770caf3978 |