From 5e91bf80d76d6e06e4b3b39b4d1ab518dde62a83 Mon Sep 17 00:00:00 2001 From: Chromosomologist Date: Fri, 29 Nov 2024 10:00:12 +0100 Subject: [PATCH] fix: compare with flag_value in flag_value.__eq__ --- disnake/flags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disnake/flags.py b/disnake/flags.py index e5b8e201af..2a47e70308 100644 --- a/disnake/flags.py +++ b/disnake/flags.py @@ -56,7 +56,7 @@ def __init__(self, func: Callable[[Any], int]) -> None: self._parent: Type[T] = MISSING def __eq__(self, other: Any) -> bool: - if isinstance(other, self.__class__): + if isinstance(other, flag_value): return self.flag == other.flag if isinstance(other, BaseFlags): return self._parent is other.__class__ and self.flag == other.value