mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Code optimisations and refactoring via Sourcery
This commit is contained in:
1 parent
e090ee4308
commit
63ec23bac2
18 files changed
+47
-90
No files matched your search
+1
-1
@@ -413,7 +413,7 @@ class AutoShardedClient(Client):
|
||||
|
||||
self._connection.shard_count = self.shard_count
|
||||
|
||||
shard_ids = self.shard_ids if self.shard_ids else range(self.shard_count)
|
||||
shard_ids = self.shard_ids or range(self.shard_count)
|
||||
self._connection.shard_ids = shard_ids
|
||||
|
||||
for shard_id in shard_ids:
|
||||
|
||||
Reference in new issue
Block a user