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