mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Not dc after getting current user info
This commit is contained in:
parent
4a3d24c5d6
commit
3d12802d77
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user