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