mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 01:00:00 +00:00
parent
9fe19dcc69
commit
b917904c1b
@ -416,6 +416,9 @@ class AutoShardedClient(Client):
|
|||||||
ret.launch()
|
ret.launch()
|
||||||
|
|
||||||
async def launch_shards(self) -> None:
|
async def launch_shards(self) -> None:
|
||||||
|
if self.is_closed():
|
||||||
|
return
|
||||||
|
|
||||||
if self.shard_count is None:
|
if self.shard_count is None:
|
||||||
self.shard_count: int
|
self.shard_count: int
|
||||||
self.shard_count, gateway = await self.http.get_bot_gateway()
|
self.shard_count, gateway = await self.http.get_bot_gateway()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user