Browse Source

Added eq dunder method to Scheduled Event Exception Counts

pull/9685/head
Developer Anonymous 2 years ago
parent
commit
1527450586
  1. 5
      discord/scheduled_event.py

5
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"""

Loading…
Cancel
Save