diff options
| author | Nadir Chowdhury <[email protected]> | 2021-06-07 08:28:26 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-07 03:28:26 -0400 |
| commit | ab6d592f8ca393e5ef642295b0da44557ad4a2b0 (patch) | |
| tree | a5d44ac3d7617a1d51ee018009b184bc5a57a40f /docs | |
| parent | Add the Guild.delete_custom_emoji method (diff) | |
| download | discord.py-ab6d592f8ca393e5ef642295b0da44557ad4a2b0.tar.xz discord.py-ab6d592f8ca393e5ef642295b0da44557ad4a2b0.zip | |
Add support for integration create/update/delete events
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst index eb72d76e..d06f1565 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -660,15 +660,48 @@ to handle it, which defaults to print a traceback and ignoring the exception. .. function:: on_guild_integrations_update(guild) - .. versionadded:: 1.4 - Called whenever an integration is created, modified, or removed from a guild. This requires :attr:`Intents.integrations` to be enabled. + .. versionadded:: 1.4 + :param guild: The guild that had its integrations updated. :type guild: :class:`Guild` +.. function:: on_integration_create(integration) + + Called when an integration is created. + + This requires :attr:`Intents.integrations` to be enabled. + + .. versionadded:: 2.0 + + :param integration: The integration that was created. + :type integration: :class:`Integration` + +.. function:: on_integration_update(integration) + + Called when an integration is updated. + + This requires :attr:`Intents.integrations` to be enabled. + + .. versionadded:: 2.0 + + :param integration: The integration that was created. + :type integration: :class:`Integration` + +.. function:: on_raw_integration_delete(payload) + + Called when an integration is deleted. + + This requires :attr:`Intents.integrations` to be enabled. + + .. versionadded:: 2.0 + + :param payload: The raw event payload data. + :type payload: :class:`RawIntegrationDeleteEvent` + .. function:: on_webhooks_update(channel) Called whenever a webhook is created, modified, or removed from a guild channel. @@ -3332,6 +3365,14 @@ RawReactionClearEmojiEvent .. autoclass:: RawReactionClearEmojiEvent() :members: +RawIntegrationDeleteEvent +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. attributetable:: RawIntegrationDeleteEvent + +.. autoclass:: RawIntegrationDeleteEvent() + :members: + PartialWebhookGuild ~~~~~~~~~~~~~~~~~~~~ |