From 15274505869d6a03414a57fae001c7f99c5f100e Mon Sep 17 00:00:00 2001 From: Developer Anonymous Date: Sat, 16 Dec 2023 12:37:49 +0100 Subject: [PATCH] Added eq dunder method to Scheduled Event Exception Counts --- discord/scheduled_event.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/scheduled_event.py b/discord/scheduled_event.py index a469b557e..61b83be5a 100644 --- a/discord/scheduled_event.py +++ b/discord/scheduled_event.py @@ -76,6 +76,11 @@ class ScheduledEventExceptionCount: self._exception_snowflakes: Dict[Union[str, int], int] = data.get('guild_scheduled_event_exception_counts') + def __eq__(self, other: object) -> bool: + if isinstance(other, self.__class__): + return self.exception_ids == other.exception_ids + return NotImplemented + @property def exception_ids(self) -> List[int]: """List[:class:`int`]: A list containing all the exception event IDs"""