Update guild/parse.py
fixed a typeerror (string indices must be integers)
@@ -37,8 +37,8 @@ class GuildParse(object):
guilddata = dict(response["d"])
#take care of position
guilddata["my_data"] = response["d"].get("members", [])
- guilddata["members"] = {} #this is actually not the member list, lol. But it usually contains our position/role in that guild so...still good info
- guilddata["my_data"] = [a for a in guilddata if a["user"]["id"]==my_user_id]
+ guilddata["members"] = {} #we dont actually get sent the member list from guild creates. however, this usually contains our position/role in that guild so...still good info
+ guilddata["my_data"] = [a for a in guilddata["my_data"] if a["user"]["id"]==my_user_id]
if len(guilddata["my_data"]) == 1:
guilddata["my_data"].pop("user", None)
guilddata["my_data"]["user_id"] = my_user_id
