mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Fix game not showing and string the user id
This commit is contained in:
parent
c35743b498
commit
19ff2ffd46
@ -68,7 +68,7 @@ class SocketIOInterface:
|
|||||||
"discriminator": user.discriminator,
|
"discriminator": user.discriminator,
|
||||||
"game": None,
|
"game": None,
|
||||||
"hoist-role": None,
|
"hoist-role": None,
|
||||||
"id": user.id,
|
"id": str(user.id),
|
||||||
"status": str(user.status),
|
"status": str(user.status),
|
||||||
"username": user.name,
|
"username": user.name,
|
||||||
"nick": None,
|
"nick": None,
|
||||||
@ -79,9 +79,9 @@ class SocketIOInterface:
|
|||||||
# userobj["avatar_url"] = userobj["avatar_url"][:len(userobj["avatar_url"])-14] + ".jpg"
|
# userobj["avatar_url"] = userobj["avatar_url"][:len(userobj["avatar_url"])-14] + ".jpg"
|
||||||
if user.nick:
|
if user.nick:
|
||||||
userobj["nick"] = user.nick
|
userobj["nick"] = user.nick
|
||||||
if hasattr(user, "game"):
|
if hasattr(user, "activity") and user.activity:
|
||||||
userobj["game"] = {
|
userobj["activity"] = {
|
||||||
"name": user.game.name
|
"name": user.activity.name
|
||||||
}
|
}
|
||||||
roles = sorted(user.roles, key=lambda k: k.position, reverse=True)
|
roles = sorted(user.roles, key=lambda k: k.position, reverse=True)
|
||||||
for role in roles:
|
for role in roles:
|
||||||
|
Loading…
Reference in New Issue
Block a user