Skip to content

Commit

Permalink
add CommandPermission docs (Pycord-Development#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick authored Mar 5, 2022
2 parents 5b2f35a + 0bcad8b commit 085d693
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,24 @@ AutocompleteContext
.. autoclass:: AutocompleteContext
:members:

CommandPermission
~~~~~~~~~~~~~~~~~

.. attributetable:: CommandPermission

.. autoclass:: CommandPermission
:members:

.. autofunction:: discord.commands.permissions.permission

.. autofunction:: discord.commands.permissions.has_role

.. autofunction:: discord.commands.permissions.has_any_role

.. autofunction:: discord.commands.permissions.is_user

.. autofunction:: discord.commands.permissions.is_owner

Application Info
------------------

Expand Down

0 comments on commit 085d693

Please sign in to comment.