ScheduledEventRecurrenceRule
- interface ScheduledEventRecurrenceRule
How a scheduled event repeats. Discord supports a limited set of patterns: daily (optionally on chosen weekdays), weekly or every other week on one weekday, monthly on the nth weekday (such as the second Tuesday), and yearly on a date.
// Every Friday recurrenceRule: { start, frequency: "weekly", interval: 1, byWeekday: [4] }
Properties
Property |
Type |
Description |
|---|---|---|
|
|
For yearly events: months, where 1 is January. |
|
|
For yearly events: days of the month. |
|
|
For monthly events: the week of the month ( |
|
|
Weekdays, where 0 is Monday and 6 is Sunday. |
|
|
Number of occurrences before stopping. |
|
|
When the recurrence stops, or omit to repeat indefinitely. |
|
|
|
|
|
Repeat every |
|
|
When the first occurrence starts. Must match the event’s start time. |