mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Tightended the constraints of Spotify.__eq__.
This commit is contained in:
parent
25d9337481
commit
01588fa34b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user