Skip to content

Commit

Permalink
[commands] Cleanup descriptions being passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jan 14, 2016
1 parent 4edff12 commit b1d8e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discord/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, command_prefix, formatter=None, description=None, pm_help=Fal
self.extra_events = {}
self.cogs = {}
self.extensions = {}
self.description = description
self.description = inspect.cleandoc(description)
self.pm_help = pm_help
if formatter is not None:
if not isinstance(formatter, HelpFormatter):
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, name, callback, **kwargs):
self.brief = kwargs.get('brief')
self.aliases = kwargs.get('aliases', [])
self.pass_context = kwargs.get('pass_context', False)
self.description = kwargs.get('description')
self.description = inspect.cleandoc(kwargs.get('description', ''))
self.hidden = kwargs.get('hidden', False)
signature = inspect.signature(callback)
self.params = signature.parameters.copy()
Expand Down

0 comments on commit b1d8e12

Please sign in to comment.