From b14086f5b6f7fafb0fbcaa2d84dced513d6092cf Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Wed, 9 Apr 2025 08:12:17 +0200 Subject: [PATCH 1/3] Add missing versionadded --- discord/guild.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/guild.py b/discord/guild.py index 94d8d1cc6..f1955b674 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -3317,6 +3317,8 @@ class Guild(Hashable): The recurrence rule this event will follow. If this is ``None`` then this is a one-time event. + .. versionadded:: 2.6 + Raises ------- TypeError From e0ec0a3df2529561a7343c7cbe0c6d86e6be6015 Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Wed, 9 Apr 2025 08:14:57 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Add=20and=20update=20versionadded=E2=80=99s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- discord/scheduled_event.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/discord/scheduled_event.py b/discord/scheduled_event.py index 979de37d0..2899eb365 100644 --- a/discord/scheduled_event.py +++ b/discord/scheduled_event.py @@ -81,6 +81,8 @@ __all__ = ( class ScheduledEventRecurrenceRule: """Represents a :class:`ScheduledEvent`'s recurrence rule. + .. versionadded:: 2.6 + Parameters ---------- start_date: :class:`datetime.datetime` @@ -403,16 +405,16 @@ class ScheduledEvent(Hashable): recurrence_rule: Optional[:class:`.ScheduledEventRecurrenceRule`] The recurrence rule for this event, or ``None``. - .. versionadded:: 2.5 + .. versionadded:: 2.6 sku_ids: List[:class:`Object`] A list of objects that represent the related SKUs of this event. - .. versionadded:: 2.5 + .. versionadded:: 2.6 exceptions: List[:class:`Object`] A list of objects that represent the events on the recurrence rule of this event that were cancelled. - .. versionadded:: 2.5 + .. versionadded:: 2.6 """ __slots__ = ( @@ -772,6 +774,8 @@ class ScheduledEvent(Hashable): The recurrence rule this event will follow, or ``None`` to set it to a one-time event. + .. versionadded:: 2.6 + Raises ------- TypeError From 7756a3a206f0792e34410e999b5280e32318880c Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:39:17 +0200 Subject: [PATCH 3/3] mutally --- discord/scheduled_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/scheduled_event.py b/discord/scheduled_event.py index 2899eb365..920ce664a 100644 --- a/discord/scheduled_event.py +++ b/discord/scheduled_event.py @@ -100,7 +100,7 @@ class ScheduledEventRecurrenceRule: If ``frequency`` is ``2`` this can only have 1 item. - This is mutally exclusive with ``n_weekdays`` and ``month_days``. + This is mutually exclusive with ``n_weekdays`` and ``month_days``. n_weekdays: List[Tuple[:class:`int`, :class:`int`]] A (week, weekday) pairs list that represent the specific day within a specific week the event will recur on.