Skip to main content

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 for Asset.
  • bot_send_help - Implements Bot.send_help.
  • converter_dict - Implements Bot.converters.
  • guild_converter - Implements a converter for Guild.
  • int_map - Implements __int__ to return .id.
  • jump_url - Implements Guild.jump_url and abc.Messagable.jump_url.
  • message_eq - Implements Message.__eq__ (Message == Message).
  • silent_delete - Implements a silent keyword argument for Message.delete.
  • specific_error_handler - Implements @Command.error(Exception).
  • subcommand_error - Implements root_parent error handling.
  • webhook_channel - Implements Webhook.move_to.

Standalone

  • class_commands - Implements a way to use classes and functions as commands.

Changelog

2020.06.16

  • Updated asset_converter and guild_converter to be compatible with converter_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 on Invite.__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 a Message instance

2020.05.09

  • Added asset_converter
  • Added bot_send_help
  • Added message_eq
  • Added subcommand_error
  • Added webhook_channel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-ext-alternatives-2020.6.16.tar.gz (10.1 kB view details)

Uploaded Source

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

Hashes for discord-ext-alternatives-2020.6.16.tar.gz
Algorithm Hash digest
SHA256 ed2b557ffa925848d067832cb116d27aa5501a9b02b9f3414201077408589063
MD5 adf05dc03de776c3b85a21afae4f7b6b
BLAKE2b-256 8f2824df2352949b75ad862f1b89e229ef46ebf990ae660ce2da6c447b86c7ab

See more details on using hashes here.

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

Hashes for discord_ext_alternatives-2020.6.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a104e407b43af4d236ea10a65d70ae320a11e3f602f90ad41bc14f92f5e28f76
MD5 7076cd6111a27d85f220108548d7703c
BLAKE2b-256 b9cfad613fd313169b626f2a6412ff73e4d920f5ec7f575ee4cb79d17914217c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page