Skip to content

Commit 2b17cff

Browse files
Splitlines after cleandoc
1 parent fd9c1ef commit 2b17cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/app/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, func: Callable, *args, **kwargs) -> None:
6868
self.name: str = name
6969

7070
description = kwargs.get("description") or (
71-
inspect.cleandoc(func.__doc__.splitlines()[0])
71+
inspect.cleandoc(func.__doc__).splitlines()[0]
7272
if func.__doc__ is not None
7373
else "No description provided"
7474
)

0 commit comments

Comments
 (0)