Use id as key for hid
This commit is contained in:
		| @@ -644,7 +644,7 @@ async def export(conn, message, args): | |||||||
|  |  | ||||||
|     data = { |     data = { | ||||||
|         "name": system["name"], |         "name": system["name"], | ||||||
|         "hid": system["hid"], |         "id": system["hid"], | ||||||
|         "description": system["description"], |         "description": system["description"], | ||||||
|         "tag": system["tag"], |         "tag": system["tag"], | ||||||
|         "avatar_url": system["avatar_url"], |         "avatar_url": system["avatar_url"], | ||||||
| @@ -652,7 +652,7 @@ async def export(conn, message, args): | |||||||
|         "members": [ |         "members": [ | ||||||
|             { |             { | ||||||
|                 "name": member["name"], |                 "name": member["name"], | ||||||
|                 "hid": member["hid"], |                 "id": member["hid"], | ||||||
|                 "color": member["color"], |                 "color": member["color"], | ||||||
|                 "avatar_url": member["avatar_url"], |                 "avatar_url": member["avatar_url"], | ||||||
|                 "birthday": member["birthday"].isoformat() if member["birthday"] else None, |                 "birthday": member["birthday"].isoformat() if member["birthday"] else None, | ||||||
|   | |||||||
| @@ -137,7 +137,7 @@ async def proxy_message(conn, member, trigger_message, inner): | |||||||
| async def handle_proxying(conn, message): | async def handle_proxying(conn, message): | ||||||
|     # Can't proxy in DMs, webhook creation will explode |     # Can't proxy in DMs, webhook creation will explode | ||||||
|     if message.channel.is_private: |     if message.channel.is_private: | ||||||
|         return False |         return | ||||||
|  |  | ||||||
|     # Big fat query to find every member associated with this account |     # Big fat query to find every member associated with this account | ||||||
|     # Returned member object has a few more keys (system tag, for example) |     # Returned member object has a few more keys (system tag, for example) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user