Skip to content

Commit

Permalink
add CommandPermission docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Mar 5, 2022
1 parent 5b2f35a commit 0bcad8b
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 0bcad8b

Please sign in to comment.