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
.converter_dict
- ImplementsBot.converters
.guild_converter
- Implements a converter forGuild
.int_map
- Implements__int__
to return.id
.jump_url
- ImplementsGuild.jump_url
andabc.Messagable.jump_url
.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_commands
- Implements a way to use classes and functions as commands.
Changelog
2020.06.16
- Updated
asset_converter
andguild_converter
to be compatible withconverter_dict
. - Added
jump_url
. - Added
converter_dict
.
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
File details
Details for the file discord-ext-alternatives-2020.6.16.tar.gz
.
File metadata
- Download URL: discord-ext-alternatives-2020.6.16.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2b557ffa925848d067832cb116d27aa5501a9b02b9f3414201077408589063 |
|
MD5 | adf05dc03de776c3b85a21afae4f7b6b |
|
BLAKE2b-256 | 8f2824df2352949b75ad862f1b89e229ef46ebf990ae660ce2da6c447b86c7ab |
Provenance
File details
Details for the file discord_ext_alternatives-2020.6.16-py3-none-any.whl
.
File metadata
- Download URL: discord_ext_alternatives-2020.6.16-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a104e407b43af4d236ea10a65d70ae320a11e3f602f90ad41bc14f92f5e28f76 |
|
MD5 | 7076cd6111a27d85f220108548d7703c |
|
BLAKE2b-256 | b9cfad613fd313169b626f2a6412ff73e4d920f5ec7f575ee4cb79d17914217c |