diff options
| author | Dante Dam <[email protected]> | 2019-04-25 17:55:38 -0700 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-05-09 06:11:20 -0400 |
| commit | 01588fa34b782e8eee83d6900bb3485d095ca13c (patch) | |
| tree | 2923f91f1f58dccbdff9b68af1d74a5ffecf1c73 | |
| parent | Document remaining public enums. (diff) | |
| download | discord.py-01588fa34b782e8eee83d6900bb3485d095ca13c.tar.xz discord.py-01588fa34b782e8eee83d6900bb3485d095ca13c.zip | |
Tightended the constraints of Spotify.__eq__.
| -rw-r--r-- | discord/activity.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/activity.py b/discord/activity.py index 98fd5901..fd940209 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -497,7 +497,8 @@ class Spotify: return 'Spotify' def __eq__(self, other): - return isinstance(other, Spotify) and other._session_id == self._session_id + return (isinstance(other, Spotify) and other._session_id == self._session_id + and other._sync_id == self._sync_id and other.start == self.start) def __ne__(self, other): return not self.__eq__(other) |