mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Add on_raw_app_command_permissions_update event
This commit is contained in:
22
docs/api.rst
22
docs/api.rst
@@ -203,8 +203,20 @@ to handle it, which defaults to logging the traceback and ignoring the exception
|
||||
errors. In order to turn a function into a coroutine they must be ``async def``
|
||||
functions.
|
||||
|
||||
App Commands
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
.. function:: on_raw_app_command_permissions_update(payload)
|
||||
|
||||
Called when application command permissions are updated.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
:param payload: The raw event payload data.
|
||||
:type payload: :class:`RawAppCommandPermissionsUpdateEvent`
|
||||
|
||||
AutoMod
|
||||
~~~~~~~
|
||||
~~~~~~~~
|
||||
|
||||
.. function:: on_automod_rule_create(rule)
|
||||
|
||||
@@ -4417,6 +4429,14 @@ RawMemberRemoveEvent
|
||||
.. autoclass:: RawMemberRemoveEvent()
|
||||
:members:
|
||||
|
||||
RawAppCommandPermissionsUpdateEvent
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: RawAppCommandPermissionsUpdateEvent
|
||||
|
||||
.. autoclass:: RawAppCommandPermissionsUpdateEvent()
|
||||
:members:
|
||||
|
||||
PartialWebhookGuild
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
Reference in New Issue
Block a user