Skip to content

Commit

Permalink
Keep Chatter.id public but back to string
Browse files Browse the repository at this point in the history
Keep Chatter.id public but back to string
  • Loading branch information
chillymosh committed Mar 31, 2023
1 parent a459f8d commit ed09470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twitchio/chatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, websocket: "WSConnection", **kwargs):
self._vip = None
return

self._id = int(self._tags.get("user-id", 0))
self._id = self._tags.get("user-id")
self._badges = self._tags.get("badges")
self._turbo = self._tags.get("turbo")
self._sub = int(self._tags["subscriber"])
Expand Down Expand Up @@ -157,12 +157,12 @@ def badges(self) -> dict:
return self._cached_badges.copy() if self._cached_badges else {}

@property
def display_name(self) -> str:
def display_name(self) -> Optional[str]:
"""The user's display name."""
return self._display_name

@property
def id(self) -> int:
def id(self) -> Optional[str]:
"""The user's id."""
return self._id

Expand Down

0 comments on commit ed09470

Please sign in to comment.