Skip to content

Commit 286f1c5

Browse files
authored
Make slash command description first line of docstr
1 parent 748c7a4 commit 286f1c5

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
@@ -69,7 +69,7 @@ def __init__(self, func: Callable, *args, **kwargs) -> None:
6969
self.name: str = name
7070

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

0 commit comments

Comments
 (0)