Browse Source

Add and update versionadded’s

pull/9685/head^2
DA344 4 months ago
committed by GitHub
parent
commit
e0ec0a3df2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      discord/scheduled_event.py

10
discord/scheduled_event.py

@ -81,6 +81,8 @@ __all__ = (
class ScheduledEventRecurrenceRule: class ScheduledEventRecurrenceRule:
"""Represents a :class:`ScheduledEvent`'s recurrence rule. """Represents a :class:`ScheduledEvent`'s recurrence rule.
.. versionadded:: 2.6
Parameters Parameters
---------- ----------
start_date: :class:`datetime.datetime` start_date: :class:`datetime.datetime`
@ -403,16 +405,16 @@ class ScheduledEvent(Hashable):
recurrence_rule: Optional[:class:`.ScheduledEventRecurrenceRule`] recurrence_rule: Optional[:class:`.ScheduledEventRecurrenceRule`]
The recurrence rule for this event, or ``None``. The recurrence rule for this event, or ``None``.
.. versionadded:: 2.5 .. versionadded:: 2.6
sku_ids: List[:class:`Object`] sku_ids: List[:class:`Object`]
A list of objects that represent the related SKUs of this event. A list of objects that represent the related SKUs of this event.
.. versionadded:: 2.5 .. versionadded:: 2.6
exceptions: List[:class:`Object`] exceptions: List[:class:`Object`]
A list of objects that represent the events on the recurrence rule of this event that A list of objects that represent the events on the recurrence rule of this event that
were cancelled. were cancelled.
.. versionadded:: 2.5 .. versionadded:: 2.6
""" """
__slots__ = ( __slots__ = (
@ -772,6 +774,8 @@ class ScheduledEvent(Hashable):
The recurrence rule this event will follow, or ``None`` to set it to a The recurrence rule this event will follow, or ``None`` to set it to a
one-time event. one-time event.
.. versionadded:: 2.6
Raises Raises
------- -------
TypeError TypeError

Loading…
Cancel
Save