Skip to content

Commit

Permalink
docs: AppCmdIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
EQUENOS committed Nov 3, 2023
1 parent 55299b2 commit 8dc756e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions disnake/ext/commands/interaction_bot_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ class _Diff(TypedDict):


class AppCmdIndex(NamedTuple):
"""A named tuple used for indexation of :class:`InvokableApplicationCommand`s
stored in bot's cache.
Attributes
----------
type: :class:`ApplicationCommandType`
The type of the application command being stored.
name: :class:`str`
The name of the application command being stored.
guild_id: :class:`int`
One of the guild IDs this command should be registered to,
or ``None`` if it's a global command.
"""
type: ApplicationCommandType
name: str
guild_id: Optional[int]
Expand Down
7 changes: 7 additions & 0 deletions docs/ext/commands/api/app_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ CommandSyncFlags
.. autoclass:: CommandSyncFlags()
:members:

AppCmdIndex
~~~~~~~~~~~

.. attributetable:: AppCmdIndex

.. autoclass:: AppCmdIndex

Injection
~~~~~~~~~

Expand Down

0 comments on commit 8dc756e

Please sign in to comment.