From 56916f924115a6001a5b2f8c6253df07c584d504 Mon Sep 17 00:00:00 2001
From: Rapptz <rapptz@gmail.com>
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 2243a0408..885ad4dc2 100644
--- a/discord/object.py
+++ b/discord/object.py
@@ -102,7 +102,7 @@ class Object(Hashable):
         return f'<Object id={self.id!r} type={self.type!r}>'
 
     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