Fix TypeError on missing shard_id kwarg

This commit is contained in:
Anurag 2020-06-07 13:11:21 +05:30 committed by GitHub
parent 1ee23a235e
commit 421d8bf8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):