Skip to content

Commit

Permalink
Fixed user not found in /balance
Browse files Browse the repository at this point in the history
  • Loading branch information
dssecret committed Dec 12, 2023
1 parent facfebe commit 9aa1c38
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion skynet/commands/faction/balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,22 @@ def balance(interaction, *args, **kwargs):
},
}

if user.faction is None:
elif user is None:
return {
"type": 4,
"data": {
"embeds": [
{
"title": "User Not Found",
"description": "The mentioned user or the invoker could not be found in the database. Please "
"try verifying or signing into Tornium.",
"color": SKYNET_ERROR,
}
],
"flags": 64,
},
}
elif user.faction is None:
return {
"type": 4,
"data": {
Expand Down

0 comments on commit 9aa1c38

Please sign in to comment.