File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3232from .enums import (
3333 ScheduledEventEntityType ,
3434 ScheduledEventPrivacyLevel ,
35- ScheduledEventStatus ,
3635 ScheduledEventRecurrenceFrequency ,
3736 ScheduledEventRecurrenceMonth ,
3837 ScheduledEventRecurrenceWeekday ,
38+ ScheduledEventStatus ,
3939 try_enum ,
4040)
4141from .errors import ValidationError
5555 from .guild import Guild
5656 from .member import Member
5757 from .state import ConnectionState
58+ from .types .scheduled_events import ScheduledEvent as ScheduledEventPayload
5859 from .types .scheduled_events import (
59- ScheduledEvent as ScheduledEventPayload ,
6060 ScheduledEventRecurrenceRule as ScheduledEventRecurrenceRulePayload ,
6161 )
6262
@@ -255,15 +255,15 @@ def from_data(
255255 def to_payload (self ) -> dict [str , Any ]:
256256 """Convert the recurrence rule to an API payload.
257257
258- Raises
259- ------
260- ValidationError
261- If the recurrence rule violates Discord's system limitations.
262-
263258 Returns
264259 -------
265260 dict[str, Any]
266261 The recurrence rule as a dictionary suitable for the Discord API.
262+
263+ Raises
264+ ------
265+ ValidationError
266+ If the recurrence rule violates Discord's system limitations.
267267 """
268268 self .validate ()
269269
You can’t perform that action at this time.
0 commit comments