From 0f2f84d3c249765e5ef914612168899791a9d7a3 Mon Sep 17 00:00:00 2001 From: Developer Anonymous Date: Tue, 6 Aug 2024 13:40:11 +0200 Subject: [PATCH] Remove get_scheduled_event_counts from HTTPClient and more type fixes --- discord/http.py | 21 --------------------- discord/scheduled_event.py | 4 ++-- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/discord/http.py b/discord/http.py index 6e1bc3d1c..abf6a9b23 100644 --- a/discord/http.py +++ b/discord/http.py @@ -2170,27 +2170,6 @@ class HTTPClient: ), params=params, ) - - def get_scheduled_event_counts( - self, - guild_id: Snowflake, - guild_scheduled_event_id: Snowflake, - scheduled_event_exception_ids: Tuple[Snowflake, ...] - ) -> Response[scheduled_event.GuildScheduledEventExceptionCounts]: - route: str = '/guilds/{guild_id}/scheduled-events/{guild_scheduled_event_id}/users/counts?' - - if len(scheduled_event_exception_ids) > 0: - for exception_id in scheduled_event_exception_ids: - route += f"guild_scheduled_event_exception_ids={exception_id}&" - - return self.request( - Route( - 'GET', - route, - guild_id=guild_id, - guild_scheduled_event_id=guild_scheduled_event_id - ) - ) # Application commands (global) diff --git a/discord/scheduled_event.py b/discord/scheduled_event.py index 5f067730f..905f989fd 100644 --- a/discord/scheduled_event.py +++ b/discord/scheduled_event.py @@ -222,7 +222,7 @@ class ScheduledEventRecurrenceRule: def replace( self, *, - weekdays: Optional[List[date]] = MISSING, + weekdays: Optional[List[int]] = MISSING, n_weekdays: Optional[List[_NWeekday]] = MISSING, month_days: Optional[List[date]] = MISSING, ) -> Self: @@ -231,7 +231,7 @@ class ScheduledEventRecurrenceRule: Parameters ---------- - weekdays: Optional[List[:class:`datetime.date`]] + weekdays: Optional[List[:class:`int`]] The new weekdays for the event to recur on. n_weekdays: Optional[List[Tuple[:class:`int`, :class:`int`]]] The new set of specific days within a week for the event to recur on.