Not dc after getting current user info

This commit is contained in:
Jeremy Zhang 2019-03-09 02:09:23 +00:00
parent 4a3d24c5d6
commit 3d12802d77

View File

@ -131,12 +131,12 @@ class Gateway(Namespace):
return return
guild_id = data["guild_id"] guild_id = data["guild_id"]
if "user_keys" in session and not session["unauthenticated"]: 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 = { usr = {
'avatar': session["avatar"], 'avatar': session["avatar"],
'username': dbMember.username, 'username': dbMember.get("username"),
'nickname': dbMember.nickname, 'nickname': dbMember.get("nickname"),
'discriminator': dbMember.discriminator, 'discriminator': dbMember.get("discriminator"),
'user_id': str(session['user_id']), 'user_id': str(session['user_id']),
} }
emit("current_user_info", usr) emit("current_user_info", usr)