mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
[commands] Fix issue where Bot would raise if not given a description.
This commit is contained in:
parent
b1d8e12609
commit
18c71ab57c
@ -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 = inspect.cleandoc(description)
|
self.description = inspect.cleandoc(description) if description else ''
|
||||||
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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user