Update gettingGuildMembers.py
nvm the wait param doesnt work..gotta fix it :/
In the meanwhile, not waiting works.
@@ -17,7 +17,7 @@ def close_after_fetching(resp, guild_id):
bot.gateway.close()
def get_members(guild_id, channel_id):
- bot.gateway.fetchMembers(guild_id, channel_id, keep="all", wait=1) #get all user attributes, wait 1 second between requests
+ bot.gateway.fetchMembers(guild_id, channel_id, keep="all") #get all user attributes
bot.gateway.command({'function': close_after_fetching, 'params': {'guild_id': guild_id}})
bot.gateway.run()
return bot.gateway.session.guild(guild_id).members
