Conditions | 1 |
Total Lines | 17 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
12 | async def speaking_stop_middleware(self, payload: GatewayDispatch): |
||
13 | """|coro| |
||
14 | |||
15 | Middleware for ``on_speaking_stop`` event. |
||
16 | |||
17 | Parameters |
||
18 | ---------- |
||
19 | payload : :class:`GatewayDispatch` |
||
20 | The data received from the speaking stop event. |
||
21 | |||
22 | Returns |
||
23 | ------- |
||
24 | Tuple[:class:`str`, List[:class:`Snowflake`]] |
||
25 | ``on_speaking_stop`` and a ``Snowflake`` (user_id) |
||
26 | """ |
||
27 | return "on_speaking_stop", [ |
||
28 | SpeakingStopEvent.from_dict(construct_client_dict(self, payload.data)) |
||
29 | ] |
||
34 |