Skip to content

Commit 085d693

Browse files
authored
add CommandPermission docs (#1121)
2 parents 5b2f35a + 0bcad8b commit 085d693

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/api.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,24 @@ AutocompleteContext
168168
.. autoclass:: AutocompleteContext
169169
:members:
170170

171+
CommandPermission
172+
~~~~~~~~~~~~~~~~~
173+
174+
.. attributetable:: CommandPermission
175+
176+
.. autoclass:: CommandPermission
177+
:members:
178+
179+
.. autofunction:: discord.commands.permissions.permission
180+
181+
.. autofunction:: discord.commands.permissions.has_role
182+
183+
.. autofunction:: discord.commands.permissions.has_any_role
184+
185+
.. autofunction:: discord.commands.permissions.is_user
186+
187+
.. autofunction:: discord.commands.permissions.is_owner
188+
171189
Application Info
172190
------------------
173191

0 commit comments

Comments
 (0)