From 3d12802d772167fb9a22fcf69622ebdd0e168efc Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 9 Mar 2019 02:09:23 +0000 Subject: [PATCH] Not dc after getting current user info --- webapp/titanembeds/blueprints/gateway/gateway.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/titanembeds/blueprints/gateway/gateway.py b/webapp/titanembeds/blueprints/gateway/gateway.py index 2fd6664..e8f9e26 100644 --- a/webapp/titanembeds/blueprints/gateway/gateway.py +++ b/webapp/titanembeds/blueprints/gateway/gateway.py @@ -131,12 +131,12 @@ class Gateway(Namespace): return guild_id = data["guild_id"] if "user_keys" in session and not session["unauthenticated"]: - dbMember = get_guild_member(guild_id, session["user_id"]) + dbMember = redisqueue.get_guild_member(guild_id, session["user_id"]) usr = { 'avatar': session["avatar"], - 'username': dbMember.username, - 'nickname': dbMember.nickname, - 'discriminator': dbMember.discriminator, + 'username': dbMember.get("username"), + 'nickname': dbMember.get("nickname"), + 'discriminator': dbMember.get("discriminator"), 'user_id': str(session['user_id']), } emit("current_user_info", usr)