def profile_detach_member(e: TextMessageEventObject, name: str, target_oid: ObjectId): return _output_detach_outcome_( ProfileManager.detach_profile_name(e.channel_oid, name, e.user_model.id, target_oid))
def profile_detach_self(e: TextMessageEventObject, name: str): return _output_detach_outcome_( ProfileManager.detach_profile_name(e.channel_oid, name, e.user_model.id))