def has(self, entity):
        """
        Check if the given entity subscribe to this channel

        Args:
            entity (str, Player or Object): The entity to return. If
                a string, it assumed to be the key or the #dbref
                of the entity.

        Returns:
            subscriber (Player, Object or None): The given
                subscriber.

        """
        clsname = entity.__dbclass__.__name__
        if clsname == "PlayerDB":
            return entity in self.obj.db_subscriptions.all()
        elif clsname == "ObjectDB":
            return entity in self.obj.db_object_subscriptions.all()
dataset/ETHPy150Open evennia/evennia/evennia/comms/models.py/SubscriptionHandler.has/original