Fix docstring for AppCommand.options and AppCommandGroup.options

This commit is contained in:
Lucas Hardt 2022-07-26 03:20:08 +02:00 committed by GitHub
parent a5410e6135
commit 24b619a516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ class AppCommand(Hashable):
The application command's name. The application command's name.
description: :class:`str` description: :class:`str`
The application command's description. The application command's description.
options: List[Union[:class:`AppCommand`, :class:`AppCommandGroup`]] options: List[Union[:class:`Argument`, :class:`AppCommandGroup`]]
A list of options. A list of options.
default_member_permissions: Optional[:class:`~discord.Permissions`] default_member_permissions: Optional[:class:`~discord.Permissions`]
The default member permissions that can run this command. The default member permissions that can run this command.
@ -825,7 +825,7 @@ class AppCommandGroup:
The name of the subcommand. The name of the subcommand.
description: :class:`str` description: :class:`str`
The description of the subcommand. The description of the subcommand.
options: List[Union[:class:`AppCommand`, :class:`AppCommandGroup`]] options: List[Union[:class:`Argument`, :class:`AppCommandGroup`]]
A list of options. A list of options.
parent: Union[:class:`AppCommand`, :class:`AppCommandGroup`] parent: Union[:class:`AppCommand`, :class:`AppCommandGroup`]
The parent application command. The parent application command.