aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-10-19 19:37:16 -0400
committerRapptz <[email protected]>2020-10-19 19:37:16 -0400
commit707cb47438052f82c19acb1724b3b5f7e504fae0 (patch)
treef5c5d3d6c5e35484acd797d80e06e8f7a1711cb0
parentAllow concurrent calls to guild.chunk() (diff)
downloaddiscord.py-707cb47438052f82c19acb1724b3b5f7e504fae0.tar.xz
discord.py-707cb47438052f82c19acb1724b3b5f7e504fae0.zip
Fix error when querying members from the gateway.
I accidentally made this return True instead of the actual member list
-rw-r--r--discord/state.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/state.py b/discord/state.py
index 5937fec3..a53674fd 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -83,8 +83,7 @@ class ChunkRequest:
future = self.loop.create_future()
self.waiters.append(future)
try:
- await future
- return True
+ return await future
finally:
self.waiters.remove(future)