Skip to content

Commit

Permalink
Set the cluster on bot last
Browse files Browse the repository at this point in the history
  • Loading branch information
circuitsacul committed Mar 23, 2022
1 parent fad29f3 commit 9d2e087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hikari_clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def __init__(
bot: GatewayBot,
) -> None:
self.bot = bot
self.bot.cluster = self # type: ignore

self.shard_ids = shard_ids
"""The shard ids for this cluster."""
Expand All @@ -95,6 +94,8 @@ def __init__(

self.stop_future: asyncio.Future[None] | None = None

self.bot.cluster = self # type: ignore

@property
def cluster_id(self) -> int:
"""The id of this cluster.
Expand Down

0 comments on commit 9d2e087

Please sign in to comment.