From 0482dc3950f5bc08ba3123eae556a65ae661c192 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 22 Feb 2024 20:42:14 -0500 Subject: [PATCH] Fix comparisons between two Object with types --- discord/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/object.py b/discord/object.py index bf08b0f7d..8930f5897 100644 --- a/discord/object.py +++ b/discord/object.py @@ -102,7 +102,7 @@ class Object(Hashable): return f'' def __eq__(self, other: object) -> bool: - if isinstance(other, self.type): + if isinstance(other, (self.type, self.__class__)): return self.id == other.id return NotImplemented