Conditions | 1 |
Total Lines | 17 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
12 | async def integration_delete_middleware(self, payload: GatewayDispatch): |
||
13 | """|coro| |
||
14 | |||
15 | Middleware for ``on_integration_delete``, |
||
16 | |||
17 | Parameters |
||
18 | ---------- |
||
19 | payload : :class:`GatewayDispatch` |
||
20 | The data recieved from the integration delete event |
||
21 | |||
22 | Returns |
||
23 | ------- |
||
24 | Tuple[:class:`str`, List[:class:`~pincer.events.integration.IntegrationDeleteEvent`]] |
||
25 | ``on_integration_delete`` and an ``IntegrationDeleteEvent`` |
||
26 | """ |
||
27 | return "on_integration_delete", [ |
||
28 | IntegrationDeleteEvent.from_dict(construct_client_dict(self, payload.data)) |
||
29 | ] |
||
34 |