Skip to content

Commit

Permalink
fix: corporations - player's discordID being a str instead of an int
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikAza committed Aug 3, 2024
1 parent 0b6cf26 commit bb47cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyZUnivers/corporations.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def user_name(self) -> str:

@property
def user_id(self) -> int:
return self.__payload['user']['discordId']
return int(self.__payload['user']['discordId'])

@property
def user_role(self) -> str:
Expand Down Expand Up @@ -198,7 +198,7 @@ def __init__(self, payload: CorporationUserAPIResponse) -> None:

@property
def id(self) -> int:
return self.__payload['user']['discordId']
return int(self.__payload['user']['discordId'])

@property
def name(self) -> str:
Expand Down

0 comments on commit bb47cf2

Please sign in to comment.