Skip to content

Commit

Permalink
chore: Update count from API data
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-344 committed Jan 19, 2025
1 parent 1d76517 commit 4409dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/scheduled_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def from_data(cls, data: Optional[ScheduledEventRecurrenceRulePayload]) -> Optio
interval=int(data['interval']), # type: ignore
)
self.end_date = end
self.count = data.get('count')

weekdays = data.get('by_weekday', MISSING) or MISSING
self._weekdays = weekdays
Expand Down

0 comments on commit 4409dea

Please sign in to comment.