'Return all channels a given entity is subscribed to.
Args:
subscriber (Object or Player): The one subscribing.
Returns:
subscriptions (list): Channel subscribed to.'

@returns_typeclass_list
def get_subscriptions(self, subscriber):

    clsname = subscriber.__dbclass__.__name__
    if (clsname == 'PlayerDB'):
        return subscriber.subscription_set.all()
    if (clsname == 'ObjectDB'):
        return subscriber.object_subscription_set.all()
    return []
