diff --git a/docs/api.rst b/docs/api.rst index a0e4f8f214..dc22e7e752 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 ------------------