diff options
| author | Anurag <[email protected]> | 2020-06-07 13:11:21 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-07 03:41:21 -0400 |
| commit | 421d8bf8cae84b58b7242fd18f5583804de1e3e2 (patch) | |
| tree | 8dc8fbcd09339a8bd0376635cc80349ee949bc45 | |
| parent | Support discord.com/invite URL in resolve_invite (diff) | |
| download | discord.py-421d8bf8cae84b58b7242fd18f5583804de1e3e2.tar.xz discord.py-421d8bf8cae84b58b7242fd18f5583804de1e3e2.zip | |
Fix TypeError on missing shard_id kwarg
| -rw-r--r-- | discord/state.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/state.py b/discord/state.py index 57bd5b3c..f84d85ba 100644 --- a/discord/state.py +++ b/discord/state.py @@ -1048,8 +1048,8 @@ class AutoShardedConnectionState(ConnectionState): self._ready_task = None self.shard_ids = () - async def chunker(self, guild_id, query='', limit=0, *, shard_id, nonce=None): - ws = self._get_websocket(shard_id=shard_id) + async def chunker(self, guild_id, query='', limit=0, *, shard_id=None, nonce=None): + ws = self._get_websocket(guild_id, shard_id=shard_id) await ws.request_chunks(guild_id, query=query, limit=limit, nonce=nonce) async def request_offline_members(self, guilds, *, shard_id): |