def profile_attach_member(e: TextMessageEventObject, name: str, target_oid: ObjectId): return _output_attach_outcome_( ProfileManager.attach_profile_name(e.user_model.id, e.channel_oid, name, target_oid))
def profile_attach_self(e: TextMessageEventObject, name: str): return _output_attach_outcome_( ProfileManager.attach_profile_name(e.user_model.id, e.channel_oid, name))