| Conditions | 1 | 
| Total Lines | 27 | 
| 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 | |||
| 37 | Returns  | 
            ||
| 38 | -------  | 
            ||
| 39 | Tuple[:class:`str`]  | 
            ||
| 40 | ``on_ready``  | 
            ||
| 41 | """  | 
            ||
| 42 | |||
| 43 | _log.debug(  | 
            ||
| 44 | "%s Successfully reconnected to Discord gateway. Restarting heartbeat.",  | 
            ||
| 45 | gateway.shard_key  | 
            ||
| 46 | )  | 
            ||
| 47 | gateway.start_heartbeat()  | 
            ||
| 48 | |||
| 49 |     return ("on_resumed",) | 
            ||
| 50 | |||
| 54 |