예제 #1
0
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))
예제 #2
0
def profile_attach_self(e: TextMessageEventObject, name: str):
    return _output_attach_outcome_(
        ProfileManager.attach_profile_name(e.user_model.id, e.channel_oid,
                                           name))