diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515f21e80..6e3069059b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3231](https://github.com/Pycord-Development/pycord/pull/3231)) - Allow `ForumTag` to be created without an emoji. ([#3245](https://github.com/Pycord-Development/pycord/pull/3245)) +- Fix `TypeError` when checking equality of two `PartialSoundboardSound` instances. + ([#3262](https://github.com/Pycord-Development/pycord/pull/3262)) - Fix a bug where `TextChannel.archived_threads` would ignore any limit parameter smaller than 50 and use 50 instead. ([#3266](https://github.com/Pycord-Development/pycord/pull/3266)) diff --git a/discord/soundboard.py b/discord/soundboard.py index 6fae037090..4ebe6f85c6 100644 --- a/discord/soundboard.py +++ b/discord/soundboard.py @@ -42,7 +42,6 @@ from .http import HTTPClient from .state import ConnectionState - __all__ = ( "PartialSoundboardSound", "SoundboardSound", @@ -100,7 +99,7 @@ def _from_data( def __eq__( self, other: PartialSoundboardSound ) -> bool: # pyright: ignore[reportIncompatibleMethodOverride] - if isinstance(other, self, __class__): + if isinstance(other, __class__): return self.id == other.id return NotImplemented