Skip to content

Commit 4b87388

Browse files
committed
Fix typo in a AdSchedule
1 parent 567c479 commit 4b87388

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

twitchio/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class AdSchedule:
104104
Will always be ``None`` when this comes from snoozing an ad.
105105
duration: :class:`int`
106106
How long the upcoming ad will be, in seconds.
107-
preroll_freeze_time: Optional[:class:`int`]
107+
preroll_free_time: Optional[:class:`int`]
108108
The amount of pre-roll free time remaining for the channel in seconds. Will be 0 if the streamer is not pre-roll free.
109109
Will be ``None`` when this comes from snoozing an ad.
110110
snooze_count: :class:`int`
@@ -113,11 +113,11 @@ class AdSchedule:
113113
When the streamer will gain another snooze.
114114
"""
115115

116-
__slots__ = "next_ad_at", "last_ad_at", "duration", "preroll_freeze_time", "snooze_count", "snooze_refresh_at"
116+
__slots__ = "next_ad_at", "last_ad_at", "duration", "preroll_free_time", "snooze_count", "snooze_refresh_at"
117117

118118
def __init__(self, data: dict) -> None:
119119
self.duration: int = data["duration"]
120-
self.preroll_freeze_time: int = data["preroll_freeze_time"]
120+
self.preroll_free_time: int = data["preroll_free_time"]
121121
self.snooze_count: int = data["snooze_count"]
122122

123123
self.snooze_refresh_at: datetime.datetime = parse_timestamp(data["snooze_refresh_at"])

0 commit comments

Comments
 (0)