Browse Source

Minor doc/typing nitpicks

pull/10109/head
dolfies 3 years ago
parent
commit
72a46a3ef1
  1. 2
      discord/state.py
  2. 33
      docs/api.rst
  3. 3
      docs/index.rst

2
discord/state.py

@ -103,7 +103,7 @@ if TYPE_CHECKING:
from .types.voice import GuildVoiceState from .types.voice import GuildVoiceState
T = TypeVar('T') T = TypeVar('T')
Channel = Union[GuildChannel, VocalGuildChannel, PrivateChannel, PartialMessageable] Channel = Union[GuildChannel, VocalGuildChannel, PrivateChannel, PartialMessageable, ForumChannel]
MISSING = utils.MISSING MISSING = utils.MISSING
_log = logging.getLogger(__name__) _log = logging.getLogger(__name__)

33
docs/api.rst

@ -3249,6 +3249,22 @@ of :class:`enum.Enum`.
An alias for :attr:`paragraph`. An alias for :attr:`paragraph`.
.. class:: AppCommandType
The type of application command.
.. versionadded:: 2.0
.. attribute:: chat_input
A slash command.
.. attribute:: user
A user context menu command.
.. attribute:: message
A message context menu command.
.. class:: AppCommandOptionType .. class:: AppCommandOptionType
The application command's option type. This is usually the type of parameter an application command takes. The application command's option type. This is usually the type of parameter an application command takes.
@ -3289,23 +3305,6 @@ of :class:`enum.Enum`.
An attachment parameter. An attachment parameter.
.. class:: AppCommandType
The type of application command.
.. versionadded:: 2.0
.. attribute:: chat_input
A slash command.
.. attribute:: user
A user context menu command.
.. attribute:: message
A message context menu command.
.. _discord-api-audit-logs: .. _discord-api-audit-logs:
Audit Log Data Audit Log Data

3
docs/index.rst

@ -72,4 +72,5 @@ If you're looking for something related to the project itself, it's here.
whats_new whats_new
version_guarantees version_guarantees
migrating migrating_from_dpy
migrating
Loading…
Cancel
Save