aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-02-25 02:26:51 +0000
committerGitHub <[email protected]>2021-02-24 21:26:51 -0500
commit63ec23bac24ab62633bdb8fd19b93ecd3fddba7c (patch)
tree14ad9433dddf4c056c292a07e2c0e74b79942cdd /discord/shard.py
parentFix NameError with invoked_parents (diff)
downloaddiscord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.tar.xz
discord.py-63ec23bac24ab62633bdb8fd19b93ecd3fddba7c.zip
Code optimisations and refactoring via Sourcery
Diffstat (limited to 'discord/shard.py')
-rw-r--r--discord/shard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/shard.py b/discord/shard.py
index 84ba8880..1ef9e923 100644
--- a/discord/shard.py
+++ b/discord/shard.py
@@ -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: