Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
|
|||
2 | # Full MIT License can be found in `LICENSE` at the project root. |
||
3 | |||
4 | from ..core.dispatch import GatewayDispatch |
||
5 | |||
6 | |||
7 | async def payload_middleware(self, payload: GatewayDispatch): |
||
8 | """Invoked when basically anything is received from gateway..""" |
||
9 | return "on_payload", [payload] |
||
10 | |||
11 | |||
12 | def export(): |
||
13 | """Export the middleware""" |
||
14 | return payload_middleware |
||
15 |