Add missing decorator signs for interaction documentation

This commit is contained in:
Puncher
2022-08-22 00:25:31 +02:00
committed by GitHub
parent 507975e56d
commit 354d4bace4
3 changed files with 31 additions and 3 deletions

View File

@ -842,7 +842,7 @@ class CommandTree(Generic[ClientT]):
auto_locale_strings: bool = True,
extras: Dict[Any, Any] = MISSING,
) -> Callable[[CommandCallback[Group, P, T]], Command[Group, P, T]]:
"""Creates an application command directly under this tree.
"""A decorator that creates an application command from a regular function directly under this tree.
Parameters
------------
@ -911,7 +911,7 @@ class CommandTree(Generic[ClientT]):
auto_locale_strings: bool = True,
extras: Dict[Any, Any] = MISSING,
) -> Callable[[ContextMenuCallback], ContextMenu]:
"""Creates an application command context menu from a regular function directly under this tree.
"""A decorator that creates an application command context menu from a regular function directly under this tree.
This function must have a signature of :class:`~discord.Interaction` as its first parameter
and taking either a :class:`~discord.Member`, :class:`~discord.User`, or :class:`~discord.Message`,