diff options
| author | Rapptz <[email protected]> | 2016-07-01 22:12:57 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-01 22:12:57 -0400 |
| commit | 4d71b3fe7d21c14525a57caa5c3a3ada48582941 (patch) | |
| tree | 31ae56178d54f2beff9fa281dff62ae8a0264b27 /discord/ext | |
| parent | [commands] Make GroupMixin.remove_command return None. (diff) | |
| download | discord.py-4d71b3fe7d21c14525a57caa5c3a3ada48582941.tar.xz discord.py-4d71b3fe7d21c14525a57caa5c3a3ada48582941.zip | |
[commands] Do not lower-case the function name for default command names
There are some badlets out there that apparently violate PEP-8.
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 9abee04e..606f8e74 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -616,7 +616,7 @@ def command(name=None, cls=None, **attrs): ----------- name : str The name to create the command with. By default this uses the - function named unchanged. + function name unchanged. cls The class to construct with. By default this is :class:`Command`. You usually do not change this. @@ -654,7 +654,7 @@ def command(name=None, cls=None, **attrs): help_doc = help_doc.decode('utf-8') attrs['help'] = help_doc - fname = name or func.__name__.lower() + fname = name or func.__name__ return cls(name=fname, callback=func, checks=checks, **attrs) return decorator |