Skip to content

Commit a459f8d

Browse files
committed
Chatter.id default to 0 if not found
Chatter.id default to 0 if not found
1 parent e6c6e68 commit a459f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/chatter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(self, websocket: "WSConnection", **kwargs):
123123
self._vip = None
124124
return
125125

126-
self._id = int(self._tags.get("user-id"))
126+
self._id = int(self._tags.get("user-id", 0))
127127
self._badges = self._tags.get("badges")
128128
self._turbo = self._tags.get("turbo")
129129
self._sub = int(self._tags["subscriber"])

0 commit comments

Comments
 (0)