Skip to content

Commit 4140213

Browse files
committed
fix poll choice model since twitch removed the key
1 parent 9e6ecc9 commit 4140213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ def __init__(self, data: dict):
18021802
self.title: str = data["title"]
18031803
self.votes: int = data["votes"]
18041804
self.channel_points_votes: int = data["channel_points_votes"]
1805-
self.bits_votes: int = data["bits_votes"]
1805+
self.bits_votes: int = 0
18061806

18071807
def __repr__(self):
18081808
return f"<PollChoice id={self.id} title={self.title} votes={self.votes} channel_points_votes={self.channel_points_votes} bits_votes={self.bits_votes}>"

0 commit comments

Comments
 (0)