Conditions | 1 |
Total Lines | 27 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
24 | async def on_resumed( |
||
25 | self: Client, |
||
26 | gateway: Gateway, |
||
27 | payload: GatewayDispatch |
||
28 | ) -> Tuple[str]: |
||
29 | """|coro| |
||
30 | |||
31 | Middleware for the ``on_resumed`` event. |
||
32 | |||
33 | Parameters |
||
34 | ---------- |
||
35 | payload : :class:`~pincer.core.gateway.GatewayDispatch` |
||
36 | The data received from the stage instance create event |
||
37 | |||
38 | Returns |
||
39 | ------- |
||
40 | Tuple[:class:`str`] |
||
41 | ``on_ready`` |
||
42 | """ |
||
43 | |||
44 | _log.debug( |
||
45 | "%s Sucessfully reconnected to Discord gateway. Restarting heartbeat.", |
||
46 | gateway.shard_key |
||
47 | ) |
||
48 | gateway.start_heartbeat() |
||
49 | |||
50 | return ("on_resumed",) |
||
51 | |||
55 |