From 4fc9bd881020122ca721aca4614f2fcb73c618a3 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Mon, 8 May 2023 10:41:47 -0400 Subject: [PATCH] remove ctx comparison check from track __eq__ --- pomice/objects.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pomice/objects.py b/pomice/objects.py index 063bd71..b251906 100644 --- a/pomice/objects.py +++ b/pomice/objects.py @@ -98,9 +98,6 @@ class Track: if not isinstance(other, Track): return False - if self.ctx and other.ctx: - return other.track_id == self.track_id and other.ctx.message.id == self.ctx.message.id - return other.track_id == self.track_id def __str__(self) -> str: