Added (back?) support for hexes without a prefix for commands.ColourConverter
#52
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "Astrea49/colour-tweaks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Back in the day (before 1.7), discord.py used to allow hexes without a prefix (like, for example,
FF0800
), and it would parse just fine. This feature was never documented, per se, but it worked.This commit changed all of that, making it so either a
#
or a0x
was required due to a rewrite in the logic of the conversion.This PR attempts to allow hexes without a prefix to work again. Not sure if it should have a
versionchanged
or this is a great idea - let me know if there's anything wrong with this PR! Admittedly, the change is somewhat hacky anyways.Checklist
Seems fine to me, thanks
Checkout
From your project repository, check out a new branch and test the changes.