Use id as key for hid

This commit is contained in:
Ske 2018-07-15 23:16:17 +02:00
parent 9350f4cc18
commit 5b539f558e
2 changed files with 3 additions and 3 deletions

View File

@ -644,7 +644,7 @@ async def export(conn, message, args):
data = {
"name": system["name"],
"hid": system["hid"],
"id": system["hid"],
"description": system["description"],
"tag": system["tag"],
"avatar_url": system["avatar_url"],
@ -652,7 +652,7 @@ async def export(conn, message, args):
"members": [
{
"name": member["name"],
"hid": member["hid"],
"id": member["hid"],
"color": member["color"],
"avatar_url": member["avatar_url"],
"birthday": member["birthday"].isoformat() if member["birthday"] else None,

View File

@ -137,7 +137,7 @@ async def proxy_message(conn, member, trigger_message, inner):
async def handle_proxying(conn, message):
# Can't proxy in DMs, webhook creation will explode
if message.channel.is_private:
return False
return
# Big fat query to find every member associated with this account
# Returned member object has a few more keys (system tag, for example)