From ab6d592f8ca393e5ef642295b0da44557ad4a2b0 Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Mon, 7 Jun 2021 08:28:26 +0100 Subject: Add support for integration create/update/delete events --- docs/api.rst | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'docs') 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 ~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3