We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a03f9d commit 341fcceCopy full SHA for 341fcce
discord/commands/options.py
@@ -198,7 +198,7 @@ def __init__(
198
enum_choices = []
199
input_type_is_class = isinstance(input_type, type)
200
if input_type_is_class and issubclass(input_type, (Enum, DiscordEnum)):
201
- if description is None:
+ if description is None and input_type.__doc__ is not None:
202
description = inspect.cleandoc(input_type.__doc__)
203
if description and len(description) > 100:
204
description = description[:97] + "..."
0 commit comments