Conditions | 1 |
Total Lines | 17 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
15 | async def activity_join_middleware(self, payload: GatewayDispatch): |
||
16 | """|coro| |
||
17 | |||
18 | Middleware for ``on_activity_join`` event. |
||
19 | |||
20 | Parameters |
||
21 | ---------- |
||
22 | payload : :class:`GatewayDispatch` |
||
23 | The data received from the activity join event. |
||
24 | |||
25 | Returns |
||
26 | ------- |
||
27 | Tuple[:class:`str`, List[:class:`ActivityJoinEvent`]] |
||
28 | ``on_activity_join`` and an ``ActivityJoinEvent`` |
||
29 | """ |
||
30 | return "on_activity_join", [ |
||
31 | ActivityJoinEvent.from_dict(construct_client_dict(self, payload.data)) |
||
32 | ] |
||
37 |