Browse Source

Fix TypeError on missing shard_id kwarg

pull/4183/head
Anurag 5 years ago
committed by GitHub
parent
commit
421d8bf8ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/state.py

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

Loading…
Cancel
Save