mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 17:29:50 +00:00
[commands] Cleanup descriptions being passed.
This commit is contained in:
parent
4edff12f6b
commit
b1d8e12609
@ -139,7 +139,7 @@ class Bot(GroupMixin, discord.Client):
|
|||||||
self.extra_events = {}
|
self.extra_events = {}
|
||||||
self.cogs = {}
|
self.cogs = {}
|
||||||
self.extensions = {}
|
self.extensions = {}
|
||||||
self.description = description
|
self.description = inspect.cleandoc(description)
|
||||||
self.pm_help = pm_help
|
self.pm_help = pm_help
|
||||||
if formatter is not None:
|
if formatter is not None:
|
||||||
if not isinstance(formatter, HelpFormatter):
|
if not isinstance(formatter, HelpFormatter):
|
||||||
|
@ -107,7 +107,7 @@ class Command:
|
|||||||
self.brief = kwargs.get('brief')
|
self.brief = kwargs.get('brief')
|
||||||
self.aliases = kwargs.get('aliases', [])
|
self.aliases = kwargs.get('aliases', [])
|
||||||
self.pass_context = kwargs.get('pass_context', False)
|
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)
|
self.hidden = kwargs.get('hidden', False)
|
||||||
signature = inspect.signature(callback)
|
signature = inspect.signature(callback)
|
||||||
self.params = signature.parameters.copy()
|
self.params = signature.parameters.copy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user