diff --git a/payphone/bot.py b/payphone/bot.py index 65ab2b6..73e91a9 100644 --- a/payphone/bot.py +++ b/payphone/bot.py @@ -124,6 +124,9 @@ class Payphone(commands.AutoShardedBot): print(f"Shard {shard_id} was resumed!") + async def on_shard_disconnect(shard_id: int) -> None: + self.update_heartbeat.cancel() + async def get_or_fetch_channel( self, channel_id: int ) -> abc.GuildChannel | abc.PrivateChannel | discord.Thread | None: