Closed mellow-org closed 2 months ago
This pull request adds a new check to the PrefixConverter class to prevent prefixes that start with a forward slash (/). The change is implemented by adding a conditional statement in the convert method of the PrefixConverter class. Additionally, the version number of the Prefix cog has been updated.
Files | Changes |
---|---|
prefix/converters.py |
Added a new check in the PrefixConverter's convert method to raise a BadArgument if the prefix starts with a slash |
prefix/prefix.py |
Updated the version number of the Prefix cog from 1.0.4 to 1.0.5 |
LGTM, could you run pre-commit on it @mellow-org
Done! @sravan1946
Prefixes cannot start with a slash (/) because it raises a ValueError, indicating a conflict with Discord slash commands. This check has been added to the converter to prevent the issue.
Summary by Sourcery
Prevent prefixes from starting with a slash in the PrefixConverter to avoid conflicts with Discord slash commands and update the version of the Prefix management cog.
Bug Fixes:
Enhancements: