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

Available Experiments

  • asset_converter - Implements a converter for Asset.
  • bot_send_help - Implements Bot.send_help.
  • int_map - Implements __int__ to return .id.
  • message_eq - Implements Message.__eq__ (Message == Message)
  • specific_error_handler - Implements @Command.error(Exception).
  • subcommand_error - Implements root_parent error handling.
  • webhook_channel - Implements Webhook.move_to.

Changelog

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.5.12.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

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